public void SerializeGameDataWithTestName() { gameEntity.SetPlayerName("Test"); string serializedGame = serializerEntity.SerializeToString(gameEntity.GetGameData()); Assert.True(serializedGame == "{\"timePlayingTotal\":0,\"timePlayingThisSession\":0,\"playerName\":\"Test\",\"gameScore\":0}"); }
public void SerializeEmptyGameData() { gameEntity = new RaceXEntity(); string serializedGame = serializerEntity.SerializeToString(gameEntity.GetGameData()); Assert.True(serializedGame == "{\"timePlayingTotal\":0,\"timePlayingThisSession\":0,\"playerName\":\"\",\"gameScore\":0}"); }