public void CheckLetterTest()
        {
            AnswerCheckManager _answerCheckManager = new AnswerCheckManager();

            object[] rightArray = { "Ба*аба*", 2 };
            object[] array      = _answerCheckManager.CheckLetter('б', "Барабан", "*а*а*а*");

            Assert.AreEqual(rightArray[0], array[0]);
            Assert.AreEqual(rightArray[1], array[1]);
        }
Exemplo n.º 2
0
        public void TestCheckLetterReturnsNewCodeWordAndCountOfLetter()
        {
            AnswerCheckManager _answerCheckManager = new AnswerCheckManager();

            object[] rightArray = { "Ба*аба*", 2 };
            object[] array      = _answerCheckManager.CheckLetter('б', "Барабан", "*а*а*а*");

            Assert.AreEqual(rightArray[0], array[0]);
            Assert.AreEqual(rightArray[1], array[1]);
        }