예제 #1
0
        public void TestDuckAdapter()
        {
            Duck mallard = new MallardDuck();
            Turkey duckAdapter = new DuckAdapter(mallard);

            Assert.AreEqual("Quack",duckAdapter.Gobble());
            Assert.AreEqual("I'm flying",duckAdapter.Fly());
        }
        public void TestMallardDuck()

        {

            Duck mallard = new MallardDuck();

            Assert.AreEqual("Quack",mallard.Quack());

            Assert.AreEqual("I'm flying",mallard.Fly());

        }