Ejemplo n.º 1
0
        public void ReadDay_IndataIsNotDigit_ThrowException()
        {
            //Act
            Action action = () => DayReader.ReadDay("mo");

            //Assert
            action.Should().Throw <Exception>();
        }
Ejemplo n.º 2
0
        public void ReadDay_IndataIsDigitWithWhiteSpace_ReturnsParsedDay()
        {
            //Act
            var day = DayReader.ReadDay(" 1 ");

            //Assert
            day.Should().Be(1);
        }
Ejemplo n.º 3
0
        public void ReadDay_IndataIsEmpty_ThrowsArgumentException()
        {
            //Act
            Action action = () => DayReader.ReadDay(string.Empty);

            //Assert
            action.Should().Throw <ArgumentException>();
        }