Beispiel #1
0
        public void DefaultParams_ReturnsAbilitites()
        {
            var response = DotaApiClient.GetAbilitiesAsync()
                           .Result;

            SleepAfterSendingRequest();

            AssertRequestWasSuccessful(response);
            Assert.NotNull(response.Contents);
            Assert.NotEmpty(response.Contents);
            Assert.All(response.Contents, ability =>
            {
                Assert.NotEmpty(ability.Value.Affects);
                Assert.NotNull(ability.Value.Attribute);
                Assert.NotEmpty(ability.Value.LocalizedName);
            });
        }