public void AddEdge_MultiChars_Added() { // arrange CharsGraph charsGraph = new CharsGraph(); // act charsGraph.AddEdge('a', "eb").AddEdge('b', "cde").AddEdge('c', "d").AddEdge('d', "e"); // asserst string s = charsGraph.ToString(); Assert.AreEqual("a:e,b;e:a,b,d;b:a,c,d,e;c:b,d;d:b,c,e;", s); }
public void AddEdge_3Chars_Added() { // arrange CharsGraph charsGraph = new CharsGraph(); // act charsGraph.AddEdge('a', "eb").AddEdge('b', "c"); // asserst string s = charsGraph.ToString(); Assert.AreEqual("a:e,b;e:a;b:a,c;c:b;", s); }