Example #1
0
 public void BoolToColorConverter_TrueReturnsYellowBrush()
 {
     BoolToColorConverter converter = new BoolToColorConverter();
     var res = converter.Convert(true, typeof(Brush), null, null);
     res = res as Brush;
     Assert.IsTrue(res == Brushes.Yellow, "Returned brush should be 'Yellow'.");
 }
Example #2
0
 public void BoolToColorConverter_FalseReturnsWhiteBrush()
 {
     BoolToColorConverter converter = new BoolToColorConverter();
     var res = converter.Convert(false, typeof(Brush), null, null);
     res = res as Brush;
     Assert.IsTrue(res == Brushes.White, "Returned brush should be 'White'.");
 }