tests: add test for part 2 solution
This commit is contained in:
@@ -17,6 +17,16 @@ public class PuzzleSolverTests
|
|||||||
await Assert.That(result).IsEqualTo(90460);
|
await Assert.That(result).IsEqualTo(90460);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public async Task PartTwoSolution_WhenCalledWithInput_ItShouldReturnExpectedValue()
|
||||||
|
{
|
||||||
|
var input = await GetPuzzleInput();
|
||||||
|
|
||||||
|
var result = PuzzleSolver.Solve(input, true);
|
||||||
|
|
||||||
|
await Assert.That(result).IsEqualTo(575);
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[MethodDataSource(nameof(SolveTestCases))]
|
[MethodDataSource(nameof(SolveTestCases))]
|
||||||
public async Task Solve_WhenCalledWithInput_ItShouldReturnExpectedValue(SolveTestCase testCase)
|
public async Task Solve_WhenCalledWithInput_ItShouldReturnExpectedValue(SolveTestCase testCase)
|
||||||
|
|||||||
Reference in New Issue
Block a user