예제 #1
0
        public void DeveGerarExceptionCasoDiasDescansoVazio()
        {
            //arrange
            var segunda = DiasUteisTestsInitializer.DiasParaTestes[DayOfWeek.Monday];
            var diaUtil = new DiaUtil();

            //act
            diaUtil.ProximoDiaDescanso(segunda, new List <DayOfWeek>());

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

            //act
            var proximoDiaDescanso = diaUtil.ProximoDiaDescanso(terca);

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

            //act
            var proximoDiaDescanso = diaUtil.ProximoDiaDescanso(segunda, new List <DayOfWeek> {
                DayOfWeek.Wednesday
            });

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