public void BinaryFormatter()
        {
            Console.WriteLine(Object.ReferenceEquals(b.A1, b.A2));
            var tester = new BinaryFormatterTester <B>(new BinaryFormatter());
            var result = tester.SerializeAndDeserialize(b);

            Console.WriteLine(Object.ReferenceEquals(result.A1, result.A2));
        }
        public void NotValidSerialization()
        {
            var tester = new BinaryFormatterTester <A>(new BinaryFormatter());

            tester.SerializeAndDeserialize(new A());
        }
        public void TestMethod1()
        {
            var tester = new BinaryFormatterTester <A>(new BinaryFormatter());

            tester.SerializeAndDeserialize(new A());
        }