ConvertTo() public method

public ConvertTo ( ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type ) : object
ctx ITypeDescriptorContext
ci CultureInfo
value object
type System.Type
return object
		public void ConvertTo_NullError ()
		{
			WhiteSpaceTrimStringConverter cv = new WhiteSpaceTrimStringConverter ();

			Assert.AreEqual ("", cv.ConvertTo (null, null, null, typeof (string)), "A1");
		}
		public void ConvertTo ()
		{
			WhiteSpaceTrimStringConverter cv = new WhiteSpaceTrimStringConverter ();

			Assert.AreEqual ("59", cv.ConvertTo (null, null, "59", typeof (string)), "A1");
			Assert.AreEqual ("59", cv.ConvertTo (null, null, " 59", typeof (string)), "A2");
			Assert.AreEqual ("59", cv.ConvertTo (null, null, "59 ", typeof (string)), "A3");
			Assert.AreEqual ("59", cv.ConvertTo (null, null, " 59 ", typeof (string)), "A4");
		}