示例#1
0
        public void ReturnsSolution()
        {
            var solver = new Solver15();

            var result = solver.FindSolution(20);

            Assert.Equal(1, result);
        }
示例#2
0
        public void FactorialReturns24Given4()
        {
            var solver = new Solver15();

            var result = solver.FindFactorial(4);

            Assert.Equal(24, result);
        }
示例#3
0
        public void Returns2Given1()
        {
            var solver = new Solver15();

            var result = solver.FindSolution(1);

            Assert.Equal(2, result);
        }
示例#4
0
        public void FactorialReturns6Given3()
        {
            var solver = new Solver15();

            var result = solver.FindFactorial(3);

            Assert.Equal(6, result);
        }
示例#5
0
        public void Returns6Given2()
        {
            var solver = new Solver15();

            var result = solver.FindSolution(2);

            Assert.Equal(6, result);
        }