public void NormalTest() { var targetObject = new TargetObject(); var proxy = targetObject.DuckCast <IProxyDefinition>(); proxy.SayHi().Should().Be("Hello World"); proxy.SayHiWithWildcard().Should().Be("Hello World (*)"); }
public void NormalGenericPrivateInstanceTest() { var targetObject = new TargetObject <PrivateObject>(); var proxy = targetObject.DuckCast <IProxyDefinition>(); proxy.SayHi().Should().Be("Hello World"); proxy.SayHiWithWildcard().Should().Be("Hello World (*)"); }