public void TestCase3() { AbstractOrInterfaceOfPrototypeProduct prototypeProduct1 = new ConcreteShallowCopyPrototypeProductA(); AbstractOrInterfaceOfPrototypeProduct clonedProduct1 = prototypeProduct1.Clone(); bool areEqual1 = object.ReferenceEquals( prototypeProduct1.ReferenceProperty2, clonedProduct1.ReferenceProperty2); AbstractOrInterfaceOfPrototypeProduct prototypeProduct2 = new ConcreteDeepCopyPrototypeProductB(); AbstractOrInterfaceOfPrototypeProduct clonedProduct2 = prototypeProduct2.Clone(); bool areEqual2 = object.ReferenceEquals( prototypeProduct2.ReferenceProperty2, clonedProduct2.ReferenceProperty2); Console.WriteLine("{0}, {1}", areEqual1, areEqual2); }
public void TestCase3() { AbstractOrInterfaceOfPrototypeProduct prototypeProduct1 = new ConcreteShallowCopyPrototypeProductA(); AbstractOrInterfaceOfPrototypeProduct clonedProduct1 = prototypeProduct1.Clone(); bool areEqual1 = object.ReferenceEquals( prototypeProduct1.ReferenceProperty2, clonedProduct1.ReferenceProperty2); AbstractOrInterfaceOfPrototypeProduct prototypeProduct2 = new ConcreteDeepCopyPrototypeProductB(); AbstractOrInterfaceOfPrototypeProduct clonedProduct2 = prototypeProduct2.Clone(); bool areEqual2 = object.ReferenceEquals( prototypeProduct2.ReferenceProperty2, clonedProduct2.ReferenceProperty2); Console.WriteLine("{0}, {1}", areEqual1, areEqual2); }