ConvertBack() public method

public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
return object
 public void CalculateIntellisenseTextConverter_ConvertBack_StringWithCalculationConstants_SameString()
 {
     var converter = new CalculateIntellisenseTextConverter();
     const string Expected = "sum(10,10)";
     var actual = (string)converter.ConvertBack(Expected, typeof(bool), null, null);
     Assert.AreEqual(Expected, actual);
 }
 public void CalculateIntellisenseTextConverter_ConvertBack_StringWithParameterAllowUserCalculateIsTrue_StringIsConverted()
 {
     var converter = new CalculateIntellisenseTextConverter();
     string expected = string.Format("{0}sum(10,10){1}", GlobalConstants.CalculateTextConvertPrefix, GlobalConstants.CalculateTextConvertSuffix);
     var actual = (string)converter.ConvertBack("=sum(10,10)", typeof(bool), "True", null);
     Assert.AreEqual(expected, actual);
 }
 public void CalculateIntellisenseTextConverter_ConvertBack_Null_Null()
 {
     var converter = new CalculateIntellisenseTextConverter();
     var actual = (string)converter.ConvertBack(null, typeof(bool), null, null);
     Assert.AreEqual(null, actual);
 }