Exemplo n.º 1
0
        public void At_6_returns_morning()
        {
            ICurrentHourProvider current_hour_provider = CreateCurrentHourProviderReturning(6);
            DayPartProvider      tested = new DayPartProvider(current_hour_provider);

            DayPart result = tested.GetDayPart();

            Assert.AreEqual(DayPart.Morning, result);
        }
Exemplo n.º 2
0
        public void At_12_returns_afternoon()
        {
            ICurrentHourProvider current_hour_provider = CreateCurrentHourProviderReturning(12);
            DayPartProvider      tested = new DayPartProvider(current_hour_provider);

            DayPart result = tested.GetDayPart();

            Assert.AreEqual(DayPart.Afternoon, result);
        }
Exemplo n.º 3
0
        public void At_20_returns_night()
        {
            ICurrentHourProvider current_hour_provider = CreateCurrentHourProviderReturning(20);
            DayPartProvider      tested = new DayPartProvider(current_hour_provider);

            DayPart result = tested.GetDayPart();

            Assert.AreEqual(DayPart.Night, result);
        }