예제 #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);
        }