public void Test_ReadSegments_Ok() { Assert.Equal(5, TestLines.Length); var sut = new SmokeDetector(TestLines); int actual = sut.FindTotalRiskLevel(); Assert.Equal(15, actual); long lactual = sut.FindTop3BasinValues(); Assert.Equal(1134, lactual); }
public void Day09_Puzzle1_and_2_Ok() { var lines = Utils.ReadLinesFromFile("Day09.txt"); Assert.Equal(100, lines.Length); var sut = new SmokeDetector(lines); int actual = sut.FindTotalRiskLevel(); Assert.Equal(588, actual); long lactual = sut.FindTop3BasinValues(); Assert.Equal(964712, lactual); }