Ejemplo n.º 1
0
        public void Day1_FirstTask_1()
        {
            // Arrange
            Day1 day = new Day1();

            day.InputString = "1122";
            string expectedResult = "3";

            // Act
            var result = day.GetResult(Enums.TaskNumber.First);

            // Assert
            Assert.AreEqual(expectedResult, result);
        }
Ejemplo n.º 2
0
        public void Day1_SecondTask_2()
        {
            // Arrange
            Day1 day = new Day1();

            day.InputString = "1221";
            string expectedResult = "0";

            // Act
            var result = day.GetResult(Enums.TaskNumber.Second);

            // Assert
            Assert.AreEqual(expectedResult, result);
        }