Ejemplo n.º 1
0
        public void GetsCorrectPath()
        {
            var solver = new PyramidSolver(_pyramidProvider);

            Assert.Collection <int>(solver.GetPath(), i => Assert.Equal(1, i),
                                    i => Assert.Equal(8, i),
                                    i => Assert.Equal(5, i),
                                    i => Assert.Equal(2, i));
        }
Ejemplo n.º 2
0
        public void GetsCorrectMaxValue()
        {
            var solver = new PyramidSolver(_pyramidProvider);

            Assert.Equal(16, solver.GetMax());
        }
 public PyramidSolverTests()
 {
     _classUnderTest = new PyramidSolver();
 }