예제 #1
0
        public void HoursCalculaton_ShouldGetHoursPerYear()
        {
            //Arrange
            _hoursCalculation = new HoursPerYear(new Hours());
            //Act
            var result = _hoursCalculation.GetHours();

            //Assert
            Assert.Equal(8760, result);
        }
예제 #2
0
        public void HoursCalcualtion_ShouldNotGetHours()
        {
            //Arrange
            _hoursCalculation = new UnknowTime(new Hours());
            //Act
            var result = _hoursCalculation.GetHours();

            //Assert
            Assert.Equal(0, result);
        }
예제 #3
0
        public void HoursCalculation_ShouldGetHoursPerMonth()
        {
            //Arrange
            _hoursCalculation = new HoursPerMonth(new Hours());
            //Act
            var result = _hoursCalculation.GetHours();

            //Assert
            Assert.Equal(730, result);
        }