public void TestGameDoesntIncludeNullPropertiesWhenConvertingToJson()
 {
     GUIDealer dealer = new GUIDealer("DEALER");
     GameViewModel model = new GameViewModel
     {
         Player = null,
         Dealer = new PlayerViewModel(dealer)
     };
     Assert.AreEqual("{\"dealer\":{\"name\":\"DEALER\",\"currentState\":\"DealerCollectingBets\",\"hand\":{\"cards\":[]}}}", model.ToJson());
 }
 public void TestGameConvertsToJson()
 {
     GUIPlayer player = new GUIPlayer("PLAYER1");
     GUIDealer dealer = new GUIDealer("DEALER");
     GameViewModel model = new GameViewModel
     {
         Player = new PlayerViewModel(player),
         Dealer = new PlayerViewModel(dealer)
     };
     Assert.AreEqual("{\"player\":{\"name\":\"PLAYER1: £1000.00\",\"currentState\":\"GUIBetting\",\"hand\":{\"cards\":[]}},\"dealer\":{\"name\":\"DEALER\",\"currentState\":\"DealerCollectingBets\",\"hand\":{\"cards\":[]}}}", model.ToJson());
 }