public void ModifyIsDirectedProperty() { ISimpleAdjList net = new SimpleAdjList(Guid.NewGuid()); Assert.IsFalse(net.IsDirected, "IsDirected should be false"); SimpleAdjListDirectedModifier surg = new SimpleAdjListDirectedModifier(); surg.ModifyIsDirectedProperty(net, !net.IsDirected); Assert.IsTrue(net.IsDirected, "IsDirected should be true"); }
internal IDirectedModifier _CreateDirectedModifyer(INetwork network) { IDirectedModifier tool = null; if (network != null) { if (network is SimpleAdjList) { tool = new SimpleAdjListDirectedModifier(); } } return tool; }