Пример #1
0
        public void SolutionPart2()
        {
            // Arrange
            string filePath = $"{new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName}/Day12/Resources/input.txt";
            Day12  day      = new Day12();

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

            // Result
            _output.WriteLine(result.ToString());
        }
Пример #2
0
        public void Test1Part2()
        {
            // Arrange
            string filePath = $"{new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName}/Day12/Resources/test.txt";
            Day12  day      = new Day12();

            // Act
            int result = day.Compute(filePath, true);

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