Ejemplo n.º 1
0
        public void SolutionPart2()
        {
            // Arrange
            string filePath =
                $"{new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName}/Day14/Resources/input.txt";
            Day14 day = new Day14();

            // Act
            var result = day.Compute(filePath, false);

            // Result
            _output.WriteLine(result.ToString());
        }
Ejemplo n.º 2
0
        public void Test1Part2()
        {
            // Arrange
            string filePath =
                $"{new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName}/Day14/Resources/test2.txt";
            Day14 day = new Day14();

            // Act
            long result = day.Compute(filePath, false);

            // Assert
            result.Should().Be(208);
        }