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

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

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

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

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