예제 #1
0
        void SmallValuesTest(int x, int y, int d, int expected)
        {
            var solution = new FrogJmpSolution();

            var result = solution.Solution(x, y, d);

            Assert.Equal(expected, result);
        }
예제 #2
0
        void JumpBiggerThanDistanceTest()
        {
            var x = 10;
            var y = 85;
            var d = 10000;

            var solution = new FrogJmpSolution();
            var expected = 1;

            var result = solution.Solution(x, y, d);

            Assert.Equal(expected, result);
        }
예제 #3
0
        void ManyJumpsTest()
        {
            var x = 2;
            var y = 1000000000;
            var d = 3;

            var solution = new FrogJmpSolution();
            var expected = 333333333;

            var result = solution.Solution(x, y, d);

            Assert.Equal(expected, result);
        }
예제 #4
0
        void StartEqualsTargetTest()
        {
            var x = 20;
            var y = 20;
            var d = 5;

            var solution = new FrogJmpSolution();
            var expected = 0;

            var result = solution.Solution(x, y, d);

            Assert.Equal(expected, result);
        }