public void SolveFirstPuzzle() { var sut = HydrothermalVentReport.CreateReportNotSupportingDiagonals(REAL_INPUT); Assert.Equal(7269, sut.CalculateAmountOfOverlappingPoints()); }
public void GenerateLinesCorrectly(string singleHorizontalLine, int expectedPoints) { var sut = HydrothermalVentReport.CreateReportNotSupportingDiagonals(singleHorizontalLine); Assert.Equal(expectedPoints, sut.CalculateAmountOfOverlappingPoints()); }
public void CalculateOverlappingPoitnsCorrectly_WhenNotIncludingDiagonals(string input, int expectedCount) { var sut = HydrothermalVentReport.CreateReportNotSupportingDiagonals(input); Assert.Equal(expectedCount, sut.CalculateAmountOfOverlappingPoints()); }
public void BeInitializedCorrectly(string invalidReport) { var exception = Assert.Throws <ArgumentException>(() => HydrothermalVentReport.CreateReportNotSupportingDiagonals(invalidReport)); Assert.Equal("Invalid input", exception.Message); }