Beispiel #1
0
 public void TestThatDogCanRunAtAnySpeed()
 {
     var d = new Dog();
     //d.dogsWord = "meyow";
     d.Speed = "200";
     var actual = d.Run();
     Assert.AreEqual("I am running at 200 Miles per Hour", actual);
 }
Beispiel #2
0
 public void TestThatDogCanSayLotsOfThings()
 {
     var d = new Dog();
     //d.dogsWord = "meyow";
     d.DogsWord = "meyow";
     d.LearnNewWord("Hello");
     d.LearnNewWord("How Are You");
     var actual = d.Bark();
     Assert.AreNotEqual("meyow", actual);
 }
Beispiel #3
0
 public void TestThatDogCanSayOtherThings()
 {
     var d = new Dog();
     //d.dogsWord = "meyow";
     d.DogsWord = "meyow";
     var actual = d.Bark();
     Assert.AreEqual("meyow", actual);
 }
Beispiel #4
0
 public void TestThatDogBarks()
 {
     var d = new Dog();
     var actual = d.Bark();
     Assert.AreEqual("woof", actual);
 }