public void ConvertFrom() { UnitConverter c = new UnitConverter(); Assert.IsTrue(c.CanConvertFrom(typeof(string)), "string"); Assert.AreEqual(c.ConvertFrom("1 px"), new Unit(1), "ConvertFrom(string)"); Assert.IsFalse(c.CanConvertFrom(typeof(Unit)), "Unit"); }