Example #1
0
        public void SealedObjectWithNullReferenceToUnsealedType()
        {
            var x = new TestObject2
            {
                Name = "A"
            };

            RoundTrip(x);
        }
Example #2
0
        public void Test2()
        {
            var o = new TestObject2 {
                A = new PrimitiveValue {
                    Number = 1
                }, B = Guid.NewGuid(), C = Guid.NewGuid(), D = Guid.NewGuid(), E = Guid.NewGuid()
            };
            var x = new[] { o, o, o };

            RoundTrip(x);
        }
Example #3
0
        public void SealedObjectWithReferenceToUnsealedType()
        {
            var x = new TestObject2
            {
                Name = "A",
                Ref  = new TestC()
            };

            RoundTrip(x);
            RoundTrip(x);
        }