public void GetJoke_Count_Of_Two() { // Setup JokeHelper jokeHelper = new JokeHelper(); List <string> jokes; // Exercise jokes = jokeHelper.GetJokes(null, 2, false); // Verify Assert.AreEqual(2, jokes.Count); }
public void GetJoke_Random_Name_Present() { // Setup JokeHelper jokeHelper = new JokeHelper(); List <string> jokes; // Exercise jokes = jokeHelper.GetJokes(null, 1, true); // Verify Assert.IsNotNull(jokes); }
public void GetJoke_Travel_Category_Present() { // Setup JokeHelper jokeHelper = new JokeHelper(); List <string> jokes; // Exercise jokes = jokeHelper.GetJokes("travel", 1, false); // Verify Assert.IsNotNull(jokes); }
public void GetJoke_Count_Of_One_Travel_Category_Random_Name_Present() { // Setup JokeHelper jokeHelper = new JokeHelper(); List <string> jokes; // Exercise jokes = jokeHelper.GetJokes("travel", 1, true); // Verify Assert.IsNotNull(jokes); Assert.AreEqual(1, jokes.Count); }