public void Convert_False() { var converter = new BooleanToGrayscaleConverter(); Assert.AreEqual(0d, converter.Convert(false, typeof (double), null, (CultureInfo)null)); }
public void ConvertBack() { var converter = new BooleanToGrayscaleConverter(); Assert.AreEqual(ConverterHelper.UnsetValue, converter.ConvertBack(null, typeof (object), null, (CultureInfo)null)); }
public void Convert_NonBooleanValue() { var converter = new BooleanToGrayscaleConverter(); Assert.AreEqual(ConverterHelper.UnsetValue, converter.Convert("string", typeof (double), null, (CultureInfo)null)); }