Beispiel #1
0
        public void Mallard_Fly()
        {
            var mallard = new Mallard();
            var fly     = mallard.PerformFly();

            fly.ShouldBe("Fly away...");
        }
Beispiel #2
0
        public void MallardDuck_Quack()
        {
            var mallard = new Mallard();
            var noise   = mallard.PerformQuack();

            noise.ShouldBe("Quack!");
        }
Beispiel #3
0
        public void MallardDuck_Display()
        {
            var mallard = new Mallard();
            var look    = mallard.Display();

            look.ShouldBe("A fine mallard");
        }