Created
May 12, 2019 21:22
-
-
Save Sa1Gur/862e6633dc0e1d7d4baa8a6951d9c339 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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