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));
 }
示例#2
0
 public void Test_EvenOdd(int input, string expectedResult)
 {
     Assert.AreEqual(expectedResult, EvenOdd.EvenOrOdd(input));
 }