Exemplo n.º 1
0
        public void ShouldNotSerializeIntPtr()
        {
            var intPtrClass = new ClassWithIntPtr {
                Ptr = new IntPtr(0x666)
            };

            try
            {
                SerializerClone(intPtrClass);
                Assert.Fail("Class with IntPtr was serialized without exception.");
            }
            catch (InvalidOperationException)
            {
            }
        }
Exemplo n.º 2
0
 public AnotherContainingType()
 {
     WithIntPtr = new ClassWithIntPtr();
 }