예제 #1
0
        public void BackgroundColorShouldBeTransparentIfDayIsNotToday()
        {
            var day       = new Day(DateTime.Now.AddDays(1));
            var converter = new IsTodayToBackgroundColorConverter();

            var result = (Color)converter.Convert(day, null, null, null);

            Assert.AreEqual(Color.Transparent, result);
        }
예제 #2
0
        public void BackgroundColorShouldBeRedIfDayIsToday()
        {
            var day       = new Day(DateTime.Now);
            var converter = new IsTodayToBackgroundColorConverter();

            var result = (Color)converter.Convert(day, null, null, null);

            Assert.AreEqual(Color.Red, result);
        }
예제 #3
0
        public void BackgroundColorShouldBeTransparentIfDayIsNull()
        {
            var day       = default(Day);
            var converter = new IsTodayToBackgroundColorConverter();

            var result = (Color)converter.Convert(day, null, null, null);

            Assert.AreEqual(Color.Transparent, result);
        }