示例#1
0
        public void NonPublicStructVirtualProxyTest()
        {
            PrivateStruct       instance = default;
            VirtualPrivateProxy proxy    = instance.As <VirtualPrivateProxy>();

            Assert.Equal(instance.Value, proxy.Value);
        }
示例#2
0
        public void NonPublicStructInterfaceProxyTest()
        {
            PrivateStruct  instance = default;
            IPrivateStruct proxy    = instance.As <IPrivateStruct>();

            Assert.Equal(instance.Value, proxy.Value);
        }
示例#3
0
        public void NonPublicStructAbstractProxyTest()
        {
            PrivateStruct        instance = default;
            AbstractPrivateProxy proxy    = instance.As <AbstractPrivateProxy>();

            Assert.Equal(instance.Value, proxy.Value);
        }
示例#4
0
        public void NonPublicStructCopyTest()
        {
            PrivateStruct instance = default;
            CopyStruct    copy     = instance.As <CopyStruct>();

            Assert.Equal(instance.Value, copy.Value);
        }