ConvertFrom() public method

public ConvertFrom ( ITypeDescriptorContext ctx, CultureInfo ci, object data ) : object
ctx ITypeDescriptorContext
ci CultureInfo
data object
return object
		public void ConvertFrom ()
		{
			WhiteSpaceTrimStringConverter cv = new WhiteSpaceTrimStringConverter ();
			object o;

			o = cv.ConvertFrom (null, null, "hi there");
			Assert.AreEqual (typeof (string), o.GetType(), "A1");
			Assert.AreEqual ("hi there", (string)o, "A2");
			o = cv.ConvertFrom (null, null, " hi there ");
			Assert.AreEqual ("hi there", (string)o, "A3");
		}
		public void ConvertFrom_TypeError ()
		{
			WhiteSpaceTrimStringConverter cv = new WhiteSpaceTrimStringConverter ();
			object o;

			o = cv.ConvertFrom (null, null, 59);
			Assert.IsNull (o, "A1");
		}