public void WithSealedClass() { InheritanceProxyTypeBuilder builder = (InheritanceProxyTypeBuilder)GetProxyBuilder(); builder.TargetType = typeof(SealedClass); builder.BuildProxyType(); }
public void WithSealedClass() { InheritanceProxyTypeBuilder builder = (InheritanceProxyTypeBuilder)GetProxyBuilder(); builder.TargetType = typeof(SealedClass); Assert.Throws <ArgumentException>(() => builder.BuildProxyType()); }