public void Part2() { var input = new string[] { "mxmxvkd kfcds sqjhc nhms (contains dairy, fish)", "trh fvjkl sbzzf mxmxvkd (contains dairy)", "sqjhc fvjkl (contains soy)", "sqjhc mxmxvkd sbzzf (contains fish)", }; var day = new Day21(); day.Part2(input); var expected = "mxmxvkd,sqjhc,fvjkl"; var actual = day.DangerousList; Assert.Equal(expected, actual); }
public void Part2() { Assert.AreEqual(148, _day21.Part2()); }
public void Day21_Part2(long ans) { var d = new Day21(); Assert.Equal(ans.ToString(), d.Part2()); }