private void CopyConnectorEnd(ConnectorEnd sourceEnd, ConnectorEnd targetEnd)
 {
     targetEnd.Role        = sourceEnd.Role;
     targetEnd.Aggregation = sourceEnd.Aggregation;
     targetEnd.Cardinality = sourceEnd.Cardinality;
     targetEnd.Containment = sourceEnd.Containment;
     targetEnd.Update();
 }
 private static void AssertConnectorEndsAreEqual(ConnectorEnd expected, ConnectorEnd actual, Path path)
 {
     if (expected == null)
     {
         Assert.IsNull(actual);
     }
     else
     {
         Assert.IsNotNull(actual, "Target connector end for " + expected.Role + " is null at /" + path);
         Path connectorEndPath = path / expected.Role;
         connectorEndPropertiesAreEqual.AssertFor(expected, actual, connectorEndPath);
     }
 }
 public ReferenceDescriptor()
 {
     sourceElemEnd     = null;
     referencedElemEnd = null;
     referencedElemId  = 0;
     shouldBeIncludedInSourceElemClass = false;
     explanation       = null;
 }