Пример #1
0
    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);
    }
Пример #2
0
 public void Part2()
 {
     Assert.AreEqual(148, _day21.Part2());
 }
Пример #3
0
    public void Day21_Part2(long ans)
    {
        var d = new Day21();

        Assert.Equal(ans.ToString(), d.Part2());
    }