public void TestCheckHoldedPieceIfNotSham() { //given var strategy = new Mock <IStrategy>(); AgentInfo agentInfo = new AgentInfo(strategy.Object, defaultGameStartedMessage); CheckHoldedPieceResponse checkHoldedPiece = new CheckHoldedPieceResponse() { Sham = false }; PickPieceResponse pickPiece = new PickPieceResponse(); //when Message pickUp = new Message <PickPieceResponse>(pickPiece); agentInfo.UpdateFromMessage(pickUp); Message checkUp = new Message <CheckHoldedPieceResponse>(checkHoldedPiece); agentInfo.UpdateFromMessage(checkUp); //then Assert.AreEqual(true, agentInfo.HasPiece); }
virtual protected void CheckHoldedPieceResponseHandler(CheckHoldedPieceResponse checkHoldedPieceResponse) { }