Esempio n. 1
0
 public void ConvertBack_Green()
 {
     var converter = new ColorToBrushConverter();
     Assert.AreEqual(Colors.Green.ToString(), converter.ConvertBack(new SolidColorBrush(Colors.Green), typeof (Color), null, (CultureInfo)null).ToString());
 }
Esempio n. 2
0
 public void Convert_Black()
 {
     var converter = new ColorToBrushConverter();
     Assert.AreEqual(new SolidColorBrush(Colors.Black).ToString(), converter.Convert(Colors.Black, typeof (Brush), null, (CultureInfo)null).ToString());
 }
Esempio n. 3
0
 public void ConvertBack_Null()
 {
     var converter = new ColorToBrushConverter();
     Assert.AreEqual(Colors.Black.ToString(), converter.ConvertBack(null, typeof (Color), null, (CultureInfo)null).ToString());
 }
Esempio n. 4
0
 public void Convert_Null()
 {
     var converter = new ColorToBrushConverter();
     Assert.AreEqual(null, converter.Convert(null, typeof (Brush), null, (CultureInfo)null));
 }