public void IsValidPiece_IsFalse_IfIncomingPiece_IsNotSelectable() { IGamePiece mockPiece = Substitute.For <IGamePiece>(); mockPiece.IsSelectable().Returns(false); bool isValid = systemUnderTest.IsValidPieceInChain(mockPiece, new List <IGamePiece>()); Assert.IsFalse(isValid); }
public bool IsValidPieceInChain(IGamePiece i_piece, List <IGamePiece> i_chain) { return(i_piece.IsSelectable()); }