public IEnumerable <string> Get() { Random rand = new Random(); int num = rand.Next(1, 4); return(simple.getSingleQuote(num)); }
/// <summary> /// Tests the getSingleQuote method /// </summary> public void Test2() { SimpleRandomQuoteProvider simple = new SimpleRandomQuoteProvider(); int input = 2; List <string> expected = new List <string>(); expected.Add("2. No act of kindness, no matter how small, is ever wasted. By Aesop"); var actual = simple.getSingleQuote(input); Assert.AreEqual(expected, actual); }