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

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

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

            // Act
            var result = day.Compute2(filePath, 127);

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