public void NonPublicStructVirtualProxyTest()
        {
            PrivateStruct       instance = default;
            VirtualPrivateProxy proxy    = instance.DuckCast <VirtualPrivateProxy>();

            Assert.Equal(instance.Value, proxy.Value);
        }
Exemple #2
0
        public void NonPublicStructVirtualProxyTest()
        {
            PrivateStruct       instance = default;
            VirtualPrivateProxy proxy    = instance.DuckCast <VirtualPrivateProxy>();

            Assert.Equal((int)instance.Value, (int)proxy.Value);
            Assert.Equal(ValuesDuckType.Third.ToString(), proxy.GetValue());
            Assert.Equal(ValuesDuckType.Third.ToString(), ((IGetValue)proxy).GetValueProp);
        }