Esempio n. 1
0
        public void ProcessPassingActionCallsPassingAction()
        {
            var passingAction = new FakeAction();
            var location      = new Location(0, null, passingAction);

            location.ProcessPassingAction(null);

            Assert.IsTrue(passingAction.WasCalled);
        }
Esempio n. 2
0
        public void ProcessLandingActionCallsPassingAction()
        {
            var landingAction = new FakeAction();
            var location      = new Location(0, landingAction, null);

            location.ProcessLandingAction(null);

            Assert.IsTrue(landingAction.WasCalled);
        }
Esempio n. 3
0
        public void ActionCardCallsInternalActionWithPlayer()
        {
            var player = new Player("Fake");
            var action = new FakeAction();
            var card   = new ActionCard(action);

            card.Play(player);

            Assert.IsTrue(action.WasCalledWith(player));
        }