예제 #1
0
        public void DeveSerSabadoAPartirDeTerca()
        {
            //arrange
            var terca   = DiasUteisTestsInitializer.DiasParaTestes[DayOfWeek.Tuesday];
            var sabado  = DiasUteisTestsInitializer.DiasParaTestes[DayOfWeek.Saturday];
            var diaUtil = new DiaUtil();

            //act
            var proximaFolga = diaUtil.ProximaFolga(terca);

            //assert
            Assert.AreEqual(sabado, proximaFolga);
        }
예제 #2
0
        public void DeveSerQuartaAPartirDeSegundaSeQuartaForDiaDeDescanso()
        {
            //arrange
            var segunda = DiasUteisTestsInitializer.DiasParaTestes[DayOfWeek.Monday];
            var quarta  = DiasUteisTestsInitializer.DiasParaTestes[DayOfWeek.Wednesday];
            var diaUtil = new DiaUtil();

            //act
            var proximaFolga = diaUtil.ProximaFolga(segunda, diasDescanso: new List <DayOfWeek> {
                DayOfWeek.Wednesday
            });

            //assert
            Assert.AreEqual(quarta, proximaFolga);
        }