예제 #1
0
        public void Test18PrintsOld()
        {
            var i = new Person(18);

            i.amIOld();
            Assert.AreEqual("You are old.", Output.Flush());
        }
예제 #2
0
        public void TestLessThan13PrintsYoung()
        {
            var i = new Person(12);

            i.amIOld();
            Assert.AreEqual("You are young.", Output.Flush());
        }
예제 #3
0
 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());
     }
 }