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

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

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

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

            // Assert
            result.Should().Be("mxmxvkd,sqjhc,fvjkl");
        }