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

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

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

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

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