Пример #1
0
        public void Test_Begin()
        {
            var testResponseRetriever = new TestMethods.TestPositiveResponseRetriever();

            var beginResponse = MenuOptions.Begin(testResponseRetriever);

            Assert.AreEqual(true, beginResponse);
        }
Пример #2
0
        public void Test_PositiveConsoleRetriever()
        {
            var testResponseRetriever = new TestMethods.TestPositiveResponseRetriever();

            var testString = testResponseRetriever.GetResponse();

            Assert.AreEqual("yes", testString);
        }
Пример #3
0
        public void Test_KeepPlaying()
        {
            var inputQuestion         = "Test?";
            var testResponseRetriever = new TestMethods.TestPositiveResponseRetriever();

            var response = MenuOptions.KeepGoing(inputQuestion, testResponseRetriever);

            Assert.AreEqual(true, response);
        }