public void TestMethodGetAge() { DateTime now = DateTime.Now; DateTime birthday = new DateTime(2000, 8, 17, 11, 41, 59); int expected = 17; int age = Unclassified.GetAge(birthday, now); Assert.AreEqual(expected, age); }
public void TestMethod1() { DateTime now = DateTime.Now; DateTime birthday = new DateTime(1999, 8, 8, 12, 12, 12); int expected = 18; int age = Unclassified.GetAge(birthday, now); Assert.AreEqual(expected, age); }