public void AddArc() { MTransition mTransition = new MTransition("Игорь"); MPlace mPlace = new MPlace("Олег"); MArc arc = new MArc(mPlace, mTransition, true); bool expected = true; CTransition c = new CTransition(); bool actual = c.addArc(mTransition, arc); Assert.AreEqual(expected, actual); }
public void RemoveLink() { MTransition mTransition = new MTransition("Игорь"); MPlace mPlace = new MPlace("Олег"); MArc arc = new MArc(mPlace, mTransition, true); bool expected = true; CTransition c = new CTransition(); List <MArc> arcs = new List <MArc>(); arcs.Add(arc); bool actual = c.removeLink(arc, arcs); Assert.AreEqual(expected, actual); }