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()); }
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()); }
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()); }