Exemplo n.º 1
0
        public void FindColumnProduct_FirstColunSecondSection_Returns27456()
        {
            GridAnalyser analyser = new GridAnalyser();

            analyser.searchGrid       = QuExampleGrid;
            analyser.adjacentIntegers = 3;

            var product  = analyser.FindColumnProduct(0, 3, 3);
            var expected = 52 * 22 * 24;

            Assert.AreEqual(expected, product);
        }
Exemplo n.º 2
0
        public void FindColumnProduct_FirstColumnFirstSection_Returns31752()
        {
            GridAnalyser analyser = new GridAnalyser();

            analyser.searchGrid       = QuExampleGrid;
            analyser.adjacentIntegers = 3;

            var product  = analyser.FindColumnProduct(0, 0, 3);
            var expected = 8 * 49 * 81;

            Assert.AreEqual(expected, product);
        }