public override Day Run() { dayOfMonth = 19; stopwatch.Start(); MonsterMessage message = new MonsterMessage(); answer_part1 = message.NumberOfMatchesFromFile("input/day19.txt", false).ToString(); message = new MonsterMessage(); answer_part2 = message.NumberOfMatchesFromFile("input/day19.txt", true).ToString(); return(this); }
public void TestNumberOfMatchesFromFile() { MonsterMessage message = new MonsterMessage(); Assert.Equal(2, message.NumberOfMatchesFromFile("input/day19.txt", false)); }
public void TestNumberOfMatchesFromPatchedFile() { MonsterMessage message = new MonsterMessage(); Assert.Equal(12, message.NumberOfMatchesFromFile("input/day19b.txt", true)); }