示例#1
0
        public void Test_DayEleven_PartOne()
        {
            //< Make it
            var source  = Path.Combine(TestHelper.TestDir, "Day11.Input.txt");
            int width   = 1000;
            int height  = 1000;
            var painter = new HullPainter(source, width, height);

            //< Run it
            painter.Paint();
            //< Output the test file
            var testFile = Path.Combine(TestHelper.TestDir, "Day11.PartOne.png");

            painter.GenerateImage(testFile);
            //< Make sure we ain't f**k up
            Assert.IsTrue(painter.Painted.Count == 2276);
        }
示例#2
0
        public void Test_DayEleven_PartTwo()
        {
            //< Make it
            var source  = Path.Combine(TestHelper.TestDir, "Day11.Input.txt");
            int width   = 1000;
            int height  = 1000;
            var painter = new HullPainter(source, width, height);

            //< Run it
            painter.Paint(startingColour: 1);
            //< Output the test file
            var testFile = Path.Combine(TestHelper.TestDir, "Day11.PartTwo.png");

            painter.GenerateImage(testFile);

            //< We can't really test the output.. so.. free test.
            //< ALSO YOUR SHIT IS BACKWARDS NERD
            Assert.IsTrue(true);
        }