예제 #1
0
        public void TestThatDogBarks()
        {
            var d = new Dog();

            var actual = d.Bark();
            Assert.AreEqual("woof", actual);
        }
예제 #2
0
        public void TestThatDogCanRunAtAnySpeed()
        {
            var d = new Dog();
            d.Speed = 200;

            var actual = d.Run();
            Assert.AreEqual("I am running at 200 Miles an Hour.", actual);
        }
예제 #3
0
        public void TestThatDogCanSayOtherThings()
        {
            var d = new Dog();
            d.DogsWord = "meyow";

            d.LearnNewWord("Hellow");
            d.LearnNewWord("How Are You");
            var actual = d.Bark();
            Assert.AreEqual("meyow", actual);
        }