Last active
May 10, 2019 10:47
-
-
Save Sa1Gur/9b2adad162bf251edc2b0a4ee8555d99 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 "stdafx.h" | |
#include "../WindowsProject/check.h" | |
using namespace System; | |
using namespace System::Text; | |
using namespace System::Collections::Generic; | |
using namespace Microsoft::VisualStudio::TestTools::UnitTesting; | |
namespace UnitTest1 | |
{ | |
[TestClass] | |
public ref class UnitTest | |
{ | |
public: | |
[TestMethod] | |
void TestMethod1() | |
{ | |
auto actual = CheckE2('e', 2); | |
auto expected = true; | |
Assert::AreEqual(expected, actual); | |
} | |
[TestMethod] | |
void TestMethod2() | |
{ | |
auto actual = CheckE2('f', 3); | |
auto expected = false; | |
Assert::AreEqual(expected, actual); | |
} | |
[TestMethod] | |
void 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