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

            // Act
            int result = day.Compute(filePath, Day2.Policy.Position);

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

            // Act
            int result = day.Compute(filePath, Day2.Policy.Position);

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