Skip to content

Instantly share code, notes, and snippets.

@Sa1Gur
Created May 12, 2019 21:22
Show Gist options
  • Save Sa1Gur/862e6633dc0e1d7d4baa8a6951d9c339 to your computer and use it in GitHub Desktop.
Save Sa1Gur/862e6633dc0e1d7d4baa8a6951d9c339 to your computer and use it in GitHub Desktop.
#include "CppUnitTest.h"
#include "../ConsoleApp/check.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTestNative
{
TEST_CLASS(UnitTest1)
{
public:
TEST_METHOD(TestMethod1)
{
auto actual = CheckE2('e', 2);
auto expected = true;
Assert::AreEqual(expected, actual);
}
TEST_METHOD(TestMethod2)
{
auto actual = CheckE2('f', 3);
auto expected = false;
Assert::AreEqual(expected, actual);
}
TEST_METHOD(TestMethod3)
{
auto actual = CheckE2('g', 5);
auto expected = true;
Assert::AreEqual(expected, actual);
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment