public void NormalTest()
        {
            var targetObject = new TargetObject();
            var proxy        = targetObject.DuckCast <IProxyDefinition>();

            proxy.SayHi().Should().Be("Hello World");
            proxy.SayHiWithWildcard().Should().Be("Hello World (*)");
        }
Esempio n. 2
0
        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 (*)");
        }