public async Task Part2() { var grid = new PowerGrid(300, 300, Input); var best = await grid.EvaluateBestDynamicLocation(); Assert.Equal((236, 268, 11), best); }
public async Task PowerGridShouldEvaluateBestDynamicLocation( int width, int height, int serialNumber, int expectedX, int expectedY, int expectedDimension) { var grid = new PowerGrid(width, height, serialNumber); var best = await grid.EvaluateBestDynamicLocation(); Assert.Equal((expectedX, expectedY, expectedDimension), best); }