public void DeepCopyA()
        {
            var dorig = new MockData();

            var d = dorig.Clone();

            dorig = null;

            Assert.AreEqual(default(string), d.Name);
            Assert.AreEqual(default(int), d.Age);
            Assert.AreEqual(default(string), d.Email);
            Assert.AreEqual(default(string), d.Website);
        }
        public void DeepCopyA()
        {
            var dorig = new MockData();

            var d = dorig.Clone();

            dorig = null;

            Assert.AreEqual(default(string), d.Name);
            Assert.AreEqual(default(int), d.Age);
            Assert.AreEqual(default(string), d.Email);
            Assert.AreEqual(default(string), d.Website);
        }
        public void DeepCopyB()
        {
            var dorig = new MockData()
            {
                Name    = "Bob",
                Age     = 25,
                Email   = "*****@*****.**",
                Website = "http://doubleyouww.com"
            };

            var d = dorig.Clone();

            dorig = null;

            Assert.AreEqual("Bob", d.Name);
            Assert.AreEqual(25, d.Age);
            Assert.AreEqual("*****@*****.**", d.Email);
            Assert.AreEqual("http://doubleyouww.com", d.Website);
        }
        public void DeepCopyB()
        {
            var dorig =  new MockData()
            {
                Name = "Bob",
                Age = 25,
                Email = "*****@*****.**",
                Website = "http://doubleyouww.com"
            };

            var d = dorig.Clone();

            dorig = null;

            Assert.AreEqual("Bob", d.Name);
            Assert.AreEqual(25, d.Age);
            Assert.AreEqual("*****@*****.**", d.Email);
            Assert.AreEqual("http://doubleyouww.com", d.Website);
        }