Exemplo n.º 1
0
        public void GivenJson_WhenParsePokemonsPage_ThenReturnsExpected(string file, int expectedCount, string expectedNextPage)
        {
            var json = File.ReadAllText(file);

            var actual = PokeApiClient.ParsePokemonsPage(json);

            Assert.IsNotNull(actual);
            Assert.AreEqual(expectedCount, actual.Names.Length);
            Assert.AreEqual(expectedNextPage, actual.NextPage?.ToString());
        }