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

            // Act
            long result = day.Compute2(filePath, 10000000);

            // Assert
            result.Should().Be(149245887792);
        }
Beispiel #2
0
        public void SolutionPart2()
        {
            // Arrange
            string filePath =
                $"{new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName}/Day23/Resources/input.txt";
            Day23 day = new Day23();

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

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

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

            // Assert
            result.Should().Be("67384529");
        }