Пример #1
0
        public void Anagram_SetWord_ReturnWord()
        {
            string word      = "evil";
            string listCheck = "big boy";

            AnagramGenerator newAnagramGenerator = new AnagramGenerator(word, listCheck);

            string newWord      = newAnagramGenerator.GetWord();
            string newListCheck = newAnagramGenerator.GetListCheck();

            Assert.AreEqual(word, newWord);
            Assert.AreEqual(listCheck, newListCheck);
        }
Пример #2
0
        public void GetInput_ReturnInput()
        {
            //Arrange
            string           word                = "bread";
            string           unbrokenList        = "banana mouse";
            AnagramGenerator newAnagramGenerator = new AnagramGenerator(word, unbrokenList);

            //Act
            string newWord         = newAnagramGenerator.GetWord();
            string newUnbrokenList = newAnagramGenerator.GetUnbrokenList();

            //Assert
            Assert.AreEqual(word, newWord);
            Assert.AreEqual(newUnbrokenList, unbrokenList);
        }