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

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

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

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

            // Assert
            result.Should().Be(669060);
        }
Exemplo n.º 3
0
        public void Test5Part2()
        {
            // Arrange
            string filePath =
                $"{new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName}/Day18/Resources/test5.txt";
            Day18 day = new Day18();

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

            // Assert
            _output.WriteLine(result.ToString());
        }