public void MyTest() { Assert.AreEqual("Even", EvenOdd.EvenOrOdd(2)); Assert.AreEqual("Odd", EvenOdd.EvenOrOdd(1)); Assert.AreEqual("Even", EvenOdd.EvenOrOdd(0)); Assert.AreEqual("Odd", EvenOdd.EvenOrOdd(7)); Assert.AreEqual("Odd", EvenOdd.EvenOrOdd(-1)); }
public void Test_EvenOdd(int input, string expectedResult) { Assert.AreEqual(expectedResult, EvenOdd.EvenOrOdd(input)); }