Пример #1
0
        public void MoveStrategyWalk()
        {
            var dragon = new Dragon();

            dragon.MoveStrategy = new WalkStrategy();

            Assert.AreEqual("Walk", dragon.Move());
        }
Пример #2
0
        public void MoveStrategyFly()
        {
            var dragon = new Dragon();

            dragon.MoveStrategy = new FlyStrategy();

            Assert.AreEqual("Fly", dragon.Move());
        }
Пример #3
0
        public void DragonMoveWalk()
        {
            var dragon = new Dragon();

            Assert.AreEqual("Walking", dragon.Move(new WalkMoveBridge()));
        }
Пример #4
0
        public void DragonMoveFly()
        {
            var dragon = new Dragon();

            Assert.AreEqual("Flying", dragon.Move(new FlyMoveBridge()));
        }