예제 #1
0
        public void IfDifficultyLevelIsMedium_Sudokuhas12PresetNumbers_IsTrue()
        {
            //Arrange
            var       generateSudoku = new GenerateSudoku();
            const int expected       = 12;

            //Act
            var actual = generateSudoku.DifficultyLevel(GenerateSudoku.Difficulty.Medium);

            //Assert
            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void IfDifficultyLevelIsEasy_Sudokuhas20PresetNumbers_IsTrue()
        {
            //Arrange
            var       generateSudoku = new GenerateSudoku();
            const int expected       = 20;

            //Act
            var actual = generateSudoku.DifficultyLevel(GenerateSudoku.Difficulty.Easy);

            //Assert
            Assert.AreEqual(expected, actual);
        }