public void GetPokedexNumber_WorksAsExpected(string rate, int expected) { // Act - var actual = PokemonInformationGetter.GetPokedexNumberFromRate(rate); // Assert - Assert.AreEqual(expected, actual); }
public void GetPokemonImageLink_WorksAsExpected() { // Arrange - var imageLink = string.Empty; var configJson = JsonConfigurationReader.GetJsonConfigurationWithMyTokens(); // Act - imageLink = PokemonInformationGetter.GetPokemonImageLink(configJson.SearchToken, configJson.SearchEngineId, "Pikachu"); // Assert - Assert.True(imageLink.Length > 0); }