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); }
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); }
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); }
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); }