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

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

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

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

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