public void Account_tanks_get_player_vehicles_specify_all_parameters() { var result = WGApplication.GetPlayerVehicles(new[] { accountId }, new long[] { grilleTankId }, WGLanguageField.EN, null, null); if (result.Data != null && result.Data[0] != null && result.Data[0].Tanks.Count == 0) { Assert.Inconclusive("The selected player doesn't seem to have ANY tanks in his garage. This makes the test useless, you may try selecting a different accountId."); } Assert.IsNotNull(result.Data); Assert.AreEqual(result.Status, "ok"); Assert.IsNotNull(result.Data[0].Tanks); Assert.IsTrue(result.Data[0].Tanks.Count > 0); }
public void Account_tanks_get_vehicles_for_list_of_players() { var result = WGApplication.GetPlayerVehicles(new[] { accountId }); if (result.Data != null && result.Data[0] != null && result.Data[0].Tanks.Count == 0) { Assert.Inconclusive("The selected player doesn't seem to have ANY tanks in his garage. This makes the test useless, you may try selecting a different accountId."); } Assert.IsNotNull(result.Data); Assert.AreEqual(result.Status, "ok"); Assert.IsNotNull(result.Data[0].Tanks); Assert.IsTrue(result.Data[0].Tanks.Count > 0); }