Пример #1
0
        public void Convert_Should_Return_Green_On_Active_Value_Test()
        {
            var c = new TextToColourConverter();

            Assert.AreEqual((new SolidColorBrush(Colors.Lime)).ToString(), c.Convert("active", null, null, null).ToString());
        }
Пример #2
0
        public void Convert_Should_Return_Black_On_Anything_Besides_Active_And_Inactive_Value_Test()
        {
            var c = new TextToColourConverter();

            Assert.AreEqual((new SolidColorBrush(Colors.Black)).ToString(), c.Convert("something", null, null, null).ToString());
        }
Пример #3
0
        public void Convert_Should_Return_Black_On_Null_Value_Test()
        {
            var c = new TextToColourConverter();

            Assert.AreEqual((new SolidColorBrush(Colors.Black)).ToString(), c.Convert(null, null, null, null).ToString());
        }