ConvertValueToString() public method

Converts the value of a valid type for this property definition to a string relevant. A null value will be oonverted to a zero length string.
public ConvertValueToString ( object value ) : string
value object The value to be converted
return string
 public void TryParsePropValue_ConvertsStringToImage()
 {
     //---------------Set up test pack-------------------
     var dataMapper = new ImageDataMapper();
     var img = new System.Drawing.Bitmap(100, 100);
     var valueToParse = dataMapper.ConvertValueToString(img);
     object parsedValue;
     //---------------Execute Test ----------------------
     var parseSucceed = dataMapper.TryParsePropValue(valueToParse, out parsedValue);
     //---------------Test Result -----------------------
     Assert.IsTrue(parseSucceed);
     Assert.IsInstanceOf(typeof(System.Drawing.Bitmap), parsedValue);
     Assert.AreEqual(img.Width, ((System.Drawing.Bitmap) parsedValue).Width);
     Assert.AreEqual(img.Height, ((System.Drawing.Bitmap) parsedValue).Height);
 }
 public void ConvertValueToString_FromBitmap()
 {
     //---------------Set up test pack-------------------
     var dataMapper = new ImageDataMapper();
     var img = new System.Drawing.Bitmap(100, 100);
     //---------------Execute Test ----------------------
     string strValue = dataMapper.ConvertValueToString(img);
     //---------------Test Result -----------------------
     Assert.AreNotEqual("System.Drawing.Bitmap", strValue);
 }