Exemple #1
0
        public void Part1_Mix_ZeroOutput()
        {
            // Arrange
            string input = "-1\n -1\n +2";

            int result = Day1.Part1(input);

            Assert.Equal(0, result);
        }
Exemple #2
0
        public void Part1_AllPositive_ThreeOutput()
        {
            // Arrange
            string input = "+1\n +1\n +1";

            int result = Day1.Part1(input);

            Assert.Equal(3, result);
        }
Exemple #3
0
        public void Part1_AllNegative_NegativeSixOutput()
        {
            // Arrange
            string input = "-1\n -2\n -3";

            int result = Day1.Part1(input);

            Assert.Equal(-6, result);
        }