Ejemplo n.º 1
0
        public void Parcel_DeepClone_2_Equals_ToString()
        {
            var names = new List <string> {
                "Kozloff", "Sergeev", "Aroyan", "Gurevich"
            };
            var p1 = new PeopleNamesParcel(new GDID(0, 123), names);

            p1.Seal(FakeNOPBank.Instance);
            var p2 = p1.DeepClone() as PeopleNamesParcel;

            Aver.IsFalse(object.ReferenceEquals(p1, p2));
            Aver.IsTrue(p1.Equals(p2));

            Console.WriteLine(p1.ToString());
        }