public void ToString_error() { Graph1 g = new Graph1(); g.AddNode("Kyiv"); g.AddNode("Lviv"); Assert.AreEqual("Kyiv Lviv ", g.ToString()); }
public void AddNode_error() { Graph1 g = new Graph1(); g.AddNode("Kyiv"); g.AddNode("Lviv"); g.AddNode("Donetsk"); Assert.AreEqual(3, g.nodes.Length); }
public void AddNode_exception_error() { Graph1 g = new Graph1(); Assert.Throws(typeof(ArgumentException), () => g.AddNode("")); }