示例#1
0
        public void RedDuckQuackTest()
        {
            Duck duck = new RedDuck();

            var actual   = duck.Quack();
            var expected = "quack";

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void RedDuckDrawTest()
        {
            Duck duck = new RedDuck();

            var actual   = duck.Draw();
            var expected = "drawn red duck";

            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void RedDuckFlyTest()
        {
            Duck duck = new RedDuck();

            var actual   = duck.Fly();
            var expected = "flying";

            Assert.AreEqual(expected, actual);
        }