public void AddEdgeWithTypeTest() { Network network = new Network(); NetworkEdgeCollection target = new NetworkEdgeCollection(network); NetworkNode startNode = network.Nodes.Add(); NetworkNode endNode = network.Nodes.Add(); NetworkEdge newEdge = target.Add(startNode, endNode, NetworkEdgeType.Agent); Assert.AreEqual(NetworkEdgeType.Agent, newEdge.Type); Assert.IsNull(startNode.BaseNode); }
public void NetworkEdgeCollectionConstructorTest() { Network network = new Network(); NetworkEdgeCollection target = new NetworkEdgeCollection(network); }