Esempio n. 1
0
        public void EnsureUserEnteredColdClothsNumbersInCorrectOrderForSuccess()
        {
            CurrentDress returnedResult = CurrentDress.SortCloths(correctSequence, coldCloths);
            string       actualResult   = returnedResult.Dress;

            Assert.AreEqual(expectedTestResult, actualResult);
        }
Esempio n. 2
0
        public void EnsureFailureWhenUserInputContainsIncorrectHotClothsNumbericOrder()
        {
            CurrentDress returnedResult = CurrentDress.SortCloths(testWrongInput, hotCloths);
            string       actualResult   = returnedResult.Dress;

            Assert.AreEqual(wrongInputResult, actualResult);
        }
Esempio n. 3
0
        public void ForceFailueWhenUserInputContainsColdClothsWithIncorrectNumberOrder()
        {
            CurrentDress returnedResult = CurrentDress.SortCloths(oneNumberInput, coldCloths);
            string       actualResult   = returnedResult.Dress;

            Assert.AreEqual(wrongInputResult, actualResult);
        }
Esempio n. 4
0
        public void TestUserInputForAnyHotNumbersEnteredMoreThanOnce()
        {
            CurrentDress returnedResult = CurrentDress.SortCloths(testDupEntry, hotCloths);
            string       actualResult   = returnedResult.Dress;

            Assert.AreEqual(dupEntryResult, actualResult);
        }
Esempio n. 5
0
        public void EnsureUserEnteredHotNumbersInCorrectOrderForSuccess()
        {
            IList <string> hotCloths = new List <string>(cloths);

            string       expectedResult = "Removing PJs, shorts, t-shirt, sun visor, sandals, leaving house";
            CurrentDress returnedResult = CurrentDress.SortCloths(testCorrectInput, hotCloths);
            string       actualResult   = returnedResult.Dress;

            Assert.AreEqual(expectedResult, actualResult);
        }