public void Day05Part2() { Assert.IsTrue(Day05.IsNice2("qjhvhtzxzqqjkmpb") == true); Assert.IsTrue(Day05.IsNice2("xxyxx") == true); Assert.IsTrue(Day05.IsNice2("uurcxstgmygtbstg") == false); Assert.IsTrue(Day05.IsNice2("ieodomkazucvgmuy") == false); Assert.IsTrue(Day05.IsNice2("fbuqqaatackrvemm") == false); }
public void Part2() { var input = FileReader.ReadFile("day5.txt"); Assert.AreEqual(69, input.Count(x => _day5.IsNice2(x))); }