public void BinaryDeserialized_SerializedPlayerWithOneEmptyRound_ReturnsSamePlayer() { DecapsulatedConvertedPlayer player = ConvertedFactory.InitializeConvertedPokerPlayerWithSomeValidValues(); player.Add(new ConvertedPokerRound()); Affirm.That(player.BinaryDeserializedInMemory()).IsEqualTo(player); }
public void BinaryDeserialized_SerializedPlayerWithTwoNonEmptyRounds_ReturnsSamePlayer() { DecapsulatedConvertedPlayer player = ConvertedFactory.InitializeConvertedPokerPlayerWithSomeValidValues(); player.Add( new ConvertedPokerRound() .Add(new ConvertedPokerAction(ActionTypes.R, 2.0)) .Add(new ConvertedPokerAction(ActionTypes.C, 1.0))); Affirm.That(player.BinaryDeserializedInMemory()).IsEqualTo(player); }