public void CanCreateCoder() { var subject = new InterceptTargetSubject(typeof(IDisposable)); var mixin = new RealSubjectMixin(typeof(Sample), subject); var mixinCoder = mixin.CreateCoder(); Assert.That(subject.CreateCoder(mixinCoder, new NullProxyCodeBuilder()), Is.Not.Null); }
public void CanCreateCoder() { var subject = new DuckProxySubject(typeof(IConvertible)); var mixin = new RealSubjectMixin(typeof(object), subject); var pcd = new ProxyClassDescriptor(mixin); var mixinCoder = mixin.CreateCoder(); Assert.That(subject.CreateCoder(mixinCoder, new NullProxyCodeBuilder()), Is.Not.Null); }