Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }