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)); }
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)); }