public void CreateMatch_ValidMatchAPI_CreatedMatchHasCorrectWinner() { MatchAPI mAPI = validMatchAPI(); Match m = mAPI.CreateMatch("testdb"); Assert.IsTrue(m.Team2.Winner); }
public void CreateMatch_ValidMatchAPI_CreatedMatchHasSameIdAsMatchAPI() { MatchAPI mAPI = validMatchAPI(); Match m = mAPI.CreateMatch("testdb"); Assert.AreEqual(mAPI.MatchId, m.MatchId); }
public void CreateMatch_ValidMatchAPI_CreatedMatchTeam2Has5Participants() { MatchAPI mAPI = validMatchAPI(); Match m = mAPI.CreateMatch("testdb"); Assert.AreEqual(5, m.Team2.Participants.Count); }
public void CreateMatch_ValidMatchAPI_MatchIsCreated() { MatchAPI m = validMatchAPI(); Assert.IsInstanceOfType( m.CreateMatch("testdb"), typeof(Match)); }
public async void PlayerBasicMatchGetterFixture() { var response = await MatchAPI.GetBasicInfoOfAllMatchesOfPlayer("190500077"); Assert.NotNull(response); }
public async void MatchGetterFixture() { var response = await MatchAPI.GetMatchDetails("3842414268"); Assert.NotNull(response); }
public void CreateMatch_InvalidMatchAPI_NullReferenceExceptionThrown() { MatchAPI m = invalidMatchAPI(); Match match = m.CreateMatch("testdb"); }