示例#1
0
        public IEnumerable <string> Get()
        {
            Random rand = new Random();
            int    num  = rand.Next(1, 4);

            return(simple.getSingleQuote(num));
        }
示例#2
0
        /// <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);
        }