public async Task NotEmpty_HeroId() { using (var client = new DotaApiClient(this.ApiKey)) { var matches = await client.GetMatchHistory(76561197973295540, 1); Assert.NotEmpty(matches); } }
public async Task ArgumentOutOfRangeException_HeroId_High() { await Assert.ThrowsAsync <ArgumentOutOfRangeException>(async() => { using (var client = new DotaApiClient(this.ApiKey)) { var matches = await client.GetMatchHistory(76561197973295540, 150); } }); }
public async Task ArgumentOutOfRangeException_AccountId() { await Assert.ThrowsAsync <ArgumentOutOfRangeException>(async() => { using (var client = new DotaApiClient(this.ApiKey)) { var matches = await client.GetMatchHistory(0); } }); }
public async Task ArgumentOutOfRangeException_HeroId_High() { await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => { using (var client = new DotaApiClient(this.ApiKey)) { var matches = await client.GetMatchHistory(76561197973295540, 150); } }); }
public async Task ArgumentOutOfRangeException_AccountId() { await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => { using (var client = new DotaApiClient(this.ApiKey)) { var matches = await client.GetMatchHistory(0); } }); }