public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) { if (value is string) { return(DiscoveryVersion.FromName((string)value)); } else { return(base.ConvertFrom(context, culture, value)); } }
public void ValidName() { DiscoveryVersion.FromName("WSDiscovery11"); DiscoveryVersion.FromName("WSDiscoveryApril2005"); DiscoveryVersion.FromName("WSDiscoveryCD1"); }
public void InvalidName() { DiscoveryVersion.FromName("foobar"); }
public void EmptyName() { DiscoveryVersion.FromName(String.Empty); }
public void NullName() { DiscoveryVersion.FromName(null); }