Ejemplo n.º 1
0
        public void ExecuteTest()
        {
            var mockView = new Mock <ICharacterView>();

            var room = new Room();
            var ch   = new Character();

            ch.SetRoom(room);
            var command = new Say();

            var mockManager = new Mock <IManager <ICommand> >();

            command.Execute(new CharacterController(ch, mockView.Object, mockManager.Object, null, null),
                            PlayerInput.Parse("say hey-hey-hey!"));
        }