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 ConvertValueToString()
 {
     //---------------Set up test pack-------------------
     var dataMapper = new ByteArrayDataMapper();
     var val = CreateByteArray();
     //---------------Execute Test ----------------------
     string strValue = dataMapper.ConvertValueToString(val);
     //---------------Test Result -----------------------
     Assert.AreNotEqual("byte[]", strValue);
 }
 public void TryParsePropValue_ConvertsStringToByteArray()
 {
     //---------------Set up test pack-------------------
     var dataMapper = new ByteArrayDataMapper();
     var val = CreateByteArray();
     var valueToParse = dataMapper.ConvertValueToString(val);
     object parsedValue;
     //---------------Execute Test ----------------------
     var parseSucceed = dataMapper.TryParsePropValue(valueToParse, out parsedValue);
     //---------------Test Result -----------------------
     Assert.IsTrue(parseSucceed);
     Assert.IsInstanceOf(typeof(byte[]), parsedValue);
     Assert.AreEqual(val.Length, ((byte[])parsedValue).Length);
     CollectionAssert.AreEqual(val, (byte[])parsedValue);
 }