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()); }