public async void GetAllMonsters_Test() { DnD5eMonsterApi monsterApi = new DnD5eMonsterApi(); List <Monster> monsters = await monsterApi.GetAllMonsters(); Assert.NotNull(monsters); Assert.Equal(332, monsters.Count); foreach (Monster monster in monsters) { Assert.NotNull(monster); Assert.NotNull(monster.Name); Assert.NotEqual(monster.Name, string.Empty); } }
public async void GetMonster_Test() { DnD5eMonsterApi monsterApi = new DnD5eMonsterApi(); List <Monster> monsters = await monsterApi.GetAllMonsters(); Assert.NotNull(monsters); Assert.Equal(332, monsters.Count); Monster container = null; foreach (Monster monster in monsters) { container = await monsterApi.GetMonster(monster.Name); Assert.NotNull(container); } }