Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }