Esempio n. 1
0
        public void IsMatchingTest_Negative_NotEnoughLevel()
        {
            var sudokuLevel      = new SudokuLevel(ESudokuLevel.Medium);
            var sudokuResultMock = new Mock <ISudokuResult>();

            sudokuResultMock.SetupGet(r => r.HasUniqueSolution).Returns(true);
            Assert.IsFalse(sudokuLevel.IsMatching(sudokuResultMock.Object));
        }
Esempio n. 2
0
        public void IsMatchingTest_Positive()
        {
            var sudokuLevel      = new SudokuLevel(ESudokuLevel.Medium);
            var sudokuResultMock = new Mock <ISudokuResult>();

            sudokuResultMock.SetupGet(r => r.HasUniqueSolution).Returns(true);
            sudokuResultMock.SetupGet(r => r.BackTrackCount).Returns(200);
            Assert.IsTrue(sudokuLevel.IsMatching(sudokuResultMock.Object));
        }