public void Test_LinkTo_NullProtocol() { ProtocolAssignmentStep ps1 = new ProtocolAssignmentStep(); ProtocolAssignmentStep ps2 = new ProtocolAssignmentStep(); ps1.LinkTo(ps2); }
public void Test_LinkTo() { Procedure p1 = new Procedure(); Procedure p2 = new Procedure(); Protocol protocol = new Protocol(p1); ProtocolAssignmentStep ps1 = new ProtocolAssignmentStep(protocol), ps2 = new ProtocolAssignmentStep(new Protocol(p2)); ps1.Procedure = p1; ps2.Procedure = p2; ps1.LinkTo(ps2); Assert.IsTrue(ps2.Protocol.Procedures.Contains(p1)); Assert.Contains(p1, ps2.GetLinkedProcedures()); }