static void Main(string[] args) { Duck1 duck1 = new Duck1(); Console.WriteLine(duck1.Display()); Console.WriteLine(duck1.Fly()); Console.WriteLine(duck1.Quack()); Console.WriteLine(duck1.Swim()); }
public void TestSwim() { Duck1 donald = new Duck1(); Assert.Equal("swim", donald.Swim()); }
public void TestQuack() { Duck1 donald = new Duck1(); Assert.Equal("Quack Duck 1", donald.Quack()); }
public void TestFly() { Duck1 donald = new Duck1(); Assert.Equal("Fly Duck 1", donald.Fly()); }
public void TestDisplay() { Duck1 donald = new Duck1(); Assert.Equal("Display Duck 1", donald.Display()); }