public async Task NotNull() { using (var client = new DotaApiClient(this.ApiKey)) { var matchDetails = await client.GetMatchDetails(1962101529); Assert.NotNull(matchDetails); } }
public async Task ArgumentOutOfRangeException() { await Assert.ThrowsAsync <ArgumentOutOfRangeException>(async() => { using (var client = new DotaApiClient(this.ApiKey)) { var matchDetails = await client.GetMatchDetails(0); } }); }
public async Task ArgumentOutOfRangeException() { await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => { using (var client = new DotaApiClient(this.ApiKey)) { var matchDetails = await client.GetMatchDetails(0); } }); }