public void IsSameAs_SecondGameDataIsNull_ReturnsFalse() { var gameData1 = new GameInitializationData(); var message1 = new InitializeGameMessage(gameData1); var message2 = new InitializeGameMessage(null); message1.IsSameAs(message2).ShouldBeFalse(); }
public void IsSameAs_MessagesAreSame_ReturnsTrue() { var gameData1 = new GameInitializationData { BoardData = new Byte[] { 1, 2, 3 } }; var message1 = new InitializeGameMessage(gameData1); var gameData2 = new GameInitializationData { BoardData = new Byte[] { 1, 2, 3 } }; var message2 = new InitializeGameMessage(gameData2); message1.IsSameAs(message2).ShouldBeTrue(); }
public void IsSameAs_DataIsDifferent_ReturnsFalse() { var gameData1 = new GameInitializationData { BoardData = new Byte[] { 1, 2, 3 } }; var message1 = new InitializeGameMessage(gameData1); var gameData2 = new GameInitializationData { BoardData = new Byte[] { 3, 2, 1 } }; var message2 = new InitializeGameMessage(gameData2); message1.IsSameAs(message2).ShouldBeFalse(); }