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

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

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

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

            Assert.AreEqual(dupEntryResult, actualResult);
        }
示例#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);
        }