public void CanConvertFrom () { TimeSpanSecondsOrInfiniteConverter cv = new TimeSpanSecondsOrInfiniteConverter (); Assert.IsTrue (cv.CanConvertFrom (null, typeof (string)), "A1"); Assert.IsFalse (cv.CanConvertFrom (null, typeof (TimeSpan)), "A2"); Assert.IsFalse (cv.CanConvertFrom (null, typeof (int)), "A3"); Assert.IsFalse (cv.CanConvertFrom (null, typeof (object)), "A4"); }