コード例 #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());
 }
コード例 #2
0
 public void ConvertBack_Null()
 {
     var converter = new ColorToBrushConverter();
     Assert.AreEqual(Colors.Black.ToString(), converter.ConvertBack(null, typeof (Color), null, (CultureInfo)null).ToString());
 }