Example #1
0
        public void Solves_Problem_004()
        {
            using var expectedImage = Image.Load <Rgba32>("../../../ExpectedOutputs/Solution004.png");
            var expectedBase64String = expectedImage.ToBase64String(PngFormat.Instance);

            var actualImageFilePath = Solution004.Run("../../../InputData/Problem004Test.xml");

            using var actualImage = Image.Load <Rgba32>(actualImageFilePath);
            var actualBase64String = actualImage.ToBase64String(PngFormat.Instance);

            actualBase64String.Should().Be(expectedBase64String);
        }
Example #2
0
 public void Solves_Problem_004_Example()
 {
     Solution004.Run(2).Should().Be(9009);
 }