Exemplo n.º 1
0
        public async Task NotNull()
        {
            using (var client = new DotaApiClient(this.ApiKey))
            {
                var matchDetails = await client.GetMatchDetails(1962101529);

                Assert.NotNull(matchDetails);
            }
        }
Exemplo n.º 2
0
		public async Task NotNull()
		{
			using (var client = new DotaApiClient(this.ApiKey))
			{
				var matchDetails = await client.GetMatchDetails(1962101529);

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