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

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

            var product  = analyser.FindRowProduct(0, 3, 3);
            var expected = 97 * 38 * 15;

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

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

            var product  = analyser.FindRowProduct(0, 0, 3);
            var expected = 8 * 2 * 22;

            Assert.AreEqual(expected, product);
        }