public void Day02_Puzzle2_OK() { var sut = new DivePathFinder(); var cmds = Utils.ReadLinesFromFile("Day02.txt"); string expected = "forward 2"; Assert.Equal(expected, cmds[cmds.Length - 1]); long actual = sut.FindAimedPosition(cmds); Assert.Equal(1282809906, actual); }
public void Day02_TestAimedPath_OK() { var sut = new DivePathFinder(); string expected = "forward 2"; Assert.Equal(expected, tcmds[tcmds.Length - 1]); // int increases = sut.SimpleIncreases(depths); long actual = sut.FindAimedPosition(tcmds); Assert.Equal(15, sut.Horizontal); Assert.Equal(60, sut.Depth); Assert.Equal(900, actual); }