示例#1
0
        public void SolvePart1()
        {
            var hc = new Honeycomb();

            hc.FlipTiles(File.ReadAllLines("input.txt"));
            hc.CountBlackTiles().ShouldBe(0);
        }
示例#2
0
        public void TextOnExampleInput()
        {
            var hc = new Honeycomb();

            hc.FlipTiles(example);
            hc.CountBlackTiles().ShouldBe(10);
        }
示例#3
0
        public void Flip1Tile()
        {
            var hc = new Honeycomb();

            hc.FlipTile("e");
            hc.CountBlackTiles().ShouldBe(1);
        }
示例#4
0
        public void CheckCoordinatesForSteps(string steps, int xpected, int ypected)
        {
            var hc = new Honeycomb();

            var(x, y) = hc.MapCoordinates(steps);
            x.ShouldBe(xpected);
            y.ShouldBe(ypected);
        }
示例#5
0
        public void Test1()
        {
            var hc = new Honeycomb();

            hc.CountBlackTiles().ShouldBe(0);
        }