public void PartOne(string digits, int width, int height, int expectedLayerCount) { var layers = new Day8(digits, width, height).ConvertToLayers(); layers.Count().Should().Be(expectedLayerCount); layers.First().Should().Be("123456"); layers.Last().Should().Be("789012"); }
public void First1() => Assert.AreEqual(1, Day8.First(@"b inc 5 if a > 1 a inc 1 if b < 5 c dec -10 if a >= 1 c inc -20 if c == 10"));