Ejemplo n.º 1
0
        public void BuffersUpdateInTandem_GenericFromBase_Struct()
        {
            GenericFromBase <WFloat> e = new GenericFromBase <WFloat>();

            e.MyT = new WFloat(8.65F);
            e     = e.CloneLazinatorTyped();
            ConfirmBuffersUpdateInTandem(e);
            e.MyInt = 29; // make it dirty but leave child struct clean
            ConfirmBuffersUpdateInTandem(e);
        }
Ejemplo n.º 2
0
        public void GenericFromBase()
        {
            GenericFromBase <WInt32> c = new GenericFromBase <WInt32>()
            {
                MyT = 5
            };
            var c2   = c.CloneLazinatorTyped();
            var item = c2.MyT;

            item.WrappedValue.Should().Be(5);
        }