예제 #1
0
        public void PartTwoTest()
        {
            // Arrange
            var target = new Day07();

            // Act
            var result = target.Debug(Part.Two);

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(231, result);
        }
예제 #2
0
        public void PartOne()
        {
            // Arrange
            var target = new Day07();

            // Act
            var result = target.Debug(Part.One);

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(16076, (ushort)result);
        }
예제 #3
0
        public void PartOneTest()
        {
            // Arrange
            var target = new Day07();

            // Act
            var result = target.Debug(Part.One);

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(115, result);
        }
예제 #4
0
        public void PartOneTest(string[] input, int expected)
        {
            // Arrange
            var target = new Day07(input);

            // Act
            var result = target.Debug(Part.One);

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(expected, (ushort)result);
        }