public void NumberOfCombinationsInASquareArray_10x10GridWith3AdjacentInts_Returns288() { CombinationAnalyser analyser = new CombinationAnalyser(); analyser.adjacentIntegers = 3; int expected = 288; int result = analyser.NumberOfCombinationsInASquareArray(10); Assert.AreEqual(expected, result); }
public void HorizontalCombinations_5x2GridWith3AdjacentInts_Returns6() { CombinationAnalyser analyser = new CombinationAnalyser(); analyser.adjacentIntegers = 3; int expected = 6; int result = analyser.HorizontalCombinations(5, 2); Assert.AreEqual(expected, result); }
public void LRDiagonalCombinations_6x6GridWith3AdjacentInts_Returns16() { CombinationAnalyser analyser = new CombinationAnalyser(); analyser.adjacentIntegers = 3; int expected = 16; int result = analyser.LRDiagonalCombinations(6, 6); Assert.AreEqual(expected, result); }