Esempio n. 1
0
        public void AcceptUserInputTest7()
        {
            PajamasProblem prob      = new PajamasProblem();
            string         input     = "HOT 8, 6, 4, 2, 1, 5, 7";
            string         expOuptut = "Removing PJs, shorts, t-shirt, sun visor, sandals, fail";
            bool           doExit    = true;

            Assert.AreEqual(prob.AcceptUserInput(input, ref doExit), expOuptut);
        }
Esempio n. 2
0
        public void AcceptUserInputTest5()
        {
            PajamasProblem prob      = new PajamasProblem();
            string         input     = "COLD 8, 6, 3, 4, 2, 5, 7";
            string         expOuptut = "Removing PJs, pants, socks, shirt, hat, jacket, fail";
            bool           doExit    = false;

            Assert.AreEqual(prob.AcceptUserInput(input, ref doExit), expOuptut);
        }
Esempio n. 3
0
        public void AcceptUserInputTest6()
        {
            PajamasProblem prob      = new PajamasProblem();
            string         input     = "COLD 6";
            string         expOuptut = "fail";
            bool           doExit    = false;

            Assert.AreEqual(prob.AcceptUserInput(input, ref doExit), expOuptut);
        }
Esempio n. 4
0
        public void AcceptUserInputTest4()
        {
            PajamasProblem prob      = new PajamasProblem();
            string         input     = "HOT 8, 6, 3";
            string         expOuptut = "Removing PJs, shorts, fail";
            bool           doExit    = false;

            Assert.AreEqual(prob.AcceptUserInput(input, ref doExit), expOuptut);
        }