Exemplo n.º 1
0
        public void HoursCalculaton_ShouldGetHoursPerYear()
        {
            //Arrange
            _hoursCalculation = new HoursPerYear(new Hours());
            //Act
            var result = _hoursCalculation.GetHours();

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

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

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