Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }