public void Puzzle2ExampleTest() { // Example 1 Assert.AreEqual(2, Day01.Puzzle2(InputData.ResourceManager.GetObject("D01_E1").ToString().Replace(",", Environment.NewLine))); // Example 5 Assert.AreEqual(0, Day01.Puzzle2(InputData.ResourceManager.GetObject("D01_E5").ToString().Replace(",", Environment.NewLine))); // Example 6 Assert.AreEqual(10, Day01.Puzzle2(InputData.ResourceManager.GetObject("D01_E6").ToString().Replace(",", Environment.NewLine))); // Example 7 Assert.AreEqual(5, Day01.Puzzle2(InputData.ResourceManager.GetObject("D01_E7").ToString().Replace(",", Environment.NewLine))); // Example 7 Assert.AreEqual(14, Day01.Puzzle2(InputData.ResourceManager.GetObject("D01_E8").ToString().Replace(",", Environment.NewLine))); }
public void Puzzle2Test() { var resultingFrequency = Day01.Puzzle2(inputDay01); Assert.AreEqual(83445, resultingFrequency); }