public void ProcessPassingActionCallsPassingAction() { var passingAction = new FakeAction(); var location = new Location(0, null, passingAction); location.ProcessPassingAction(null); Assert.IsTrue(passingAction.WasCalled); }
public void ProcessLandingActionCallsPassingAction() { var landingAction = new FakeAction(); var location = new Location(0, landingAction, null); location.ProcessLandingAction(null); Assert.IsTrue(landingAction.WasCalled); }
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)); }