コード例 #1
0
 public void Convert_Green()
 {
     var converter = new ColorToBrushConverter();
     Assert.AreEqual(new SolidColorBrush(Colors.Green).ToString(), converter.Convert(Colors.Green, typeof (Brush), null, (CultureInfo)null).ToString());
 }
コード例 #2
0
 public void Convert_Null()
 {
     var converter = new ColorToBrushConverter();
     Assert.AreEqual(null, converter.Convert(null, typeof (Brush), null, (CultureInfo)null));
 }