예제 #1
0
        public void SudokuValidator_AllNumbersAreUnique_Test()
        {
            int size = 9;

            int[] allUniqueNums = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
            int[] nonUniqueNums = { 1, 1, 2, 3, 4, 5, 6, 7, 8 };

            Assert.IsTrue(validator.allNumsAreUnique(allUniqueNums, size));
            Assert.IsFalse(validator.allNumsAreUnique(nonUniqueNums, size));
        }