Example #1
0
        public void TestInvalidAnswer()
        {
            PuzzleEquation puzzleEquation = new PuzzleEquation();
            string         s = puzzleEquation.checkAnswer("abc");

            Assert.AreEqual(s, "Invalid number(must be a number)");
        }
Example #2
0
        public void TestCorrectAnswer()
        {
            PuzzleEquation puzzleEquation = new PuzzleEquation();

            puzzleEquation.setPuzzle(3, 3);
            string s = puzzleEquation.checkAnswer("6");

            Assert.AreEqual(s, "correct");
        }