Beispiel #1
0
 public void CanConvertFrom()
 {
     Assert.IsTrue(converter.CanConvertFrom(typeof(string)), "#1");
     Assert.IsFalse(converter.CanConvertFrom(typeof(char)), "#2");
     Assert.IsFalse(converter.CanConvertFrom(typeof(object)), "#3");
     Assert.IsFalse(converter.CanConvertFrom(typeof(int)), "#4");
     Assert.IsFalse(converter.CanConvertFrom(typeof(char [])), "#5");
     Assert.IsTrue(converter.CanConvertFrom(typeof(InstanceDescriptor)), "#6");
 }
Beispiel #2
0
        public void CanConvertFrom()
        {
            var converter = new CharConverter();

            Assert.IsTrue(converter.CanConvertFrom(typeof(string)));
        }