public void TwinVertexHasNameOfPrecursorWithTVAppended() { const string name = "badaboom"; var v = new Vertex(name); var tv = new TwinVertex(v, null); Assert.That(tv.Name, Is.EqualTo(name + ".TV")); }
public void TwinsHaveNameOfPrecursorWithTypeAppended() { const string name = "badaboom"; var v = new Vertex(name); var tv = new TwinVertex(v, null); Assert.That(tv.A.Name, Is.EqualTo(name + ".A")); Assert.That(tv.B.Name, Is.EqualTo(name + ".B")); }
public void Init() { _tg = new TwinGraph(); _g = new Graph(); _v1 = new Vertex(); _v2 = new Vertex(); _precursor = new Vertex("p"); _tv1 = new TwinVertex(_precursor, _tg); _tv2 = new TwinVertex(_precursor, _tg); }
public void DerivedInit() { _tv1 = new TwinVertex(null, null); _tv2 = new TwinVertex(null, null); }
public void DerivedInit() { _v = new Vertex(); _tg = new TwinGraph(); _tv = new TwinVertex(_v, _tg); }