public void Test18PrintsOld() { var i = new Person(18); i.amIOld(); Assert.AreEqual("You are old.", Output.Flush()); }
public void TestLessThan13PrintsYoung() { var i = new Person(12); i.amIOld(); Assert.AreEqual("You are young.", Output.Flush()); }
public void Test13To18PrintsTeenager() { for (var age = 13; age < 18; age++) { var i = new Person(age); i.amIOld(); Assert.AreEqual("You are a teenager.", Output.Flush()); } }