Skip to content

Instantly share code, notes, and snippets.

@Sa1Gur
Last active May 10, 2019 10:47
Show Gist options
  • Save Sa1Gur/9b2adad162bf251edc2b0a4ee8555d99 to your computer and use it in GitHub Desktop.
Save Sa1Gur/9b2adad162bf251edc2b0a4ee8555d99 to your computer and use it in GitHub Desktop.
#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