Esempio n. 1
0
        public void WithOutFakeConsoleCounterTest()
        {
            var fakeConsoleWithCounter = new FakeConsoleWrapper(false,false);

            string result = fakeConsoleWithCounter.ReadLine();
            string expected = "a";
            Assert.AreEqual(result, expected);
        }
Esempio n. 2
0
        public void CheckIfDataIsCorrectWhenTheCounterIBeingNullifiedTest()
        {
            var fakeConsoleWithCounter = new FakeConsoleWrapper(true, false);

            List<string> alphabetSymbols = new List<string>();

            for (int i = 0; i < 30; i++)
            {
                alphabetSymbols.Add(fakeConsoleWithCounter.ReadLine());
            }
            string result = alphabetSymbols[26];
            string expected = "b";
            Assert.AreEqual(result, expected);
        }