示例#1
0
            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"));
            }
示例#2
0
            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);
 }
示例#4
0
 public void DerivedInit()
 {
     _tv1 = new TwinVertex(null, null);
     _tv2 = new TwinVertex(null, null);
 }
示例#5
0
 public void DerivedInit()
 {
     _v  = new Vertex();
     _tg = new TwinGraph();
     _tv = new TwinVertex(_v, _tg);
 }