Beispiel #1
0
        public virtual void OpenCloseOpenRead()
        {
            var graphTest = new BasicThingGraphTest();

            var graph = this.Graph;

            AddData(graph, graphTest);

            this.Close();
            graph = this.Graph;

            var thing = graph.GetById(graphTest.Data.Two.Id);

            Assert.IsNotNull(thing);
            Assert.AreEqual(thing.Id, graphTest.Data.Two.Id);

            var links = graph.Edges(graphTest.Data.Two);

            foreach (var l in links)
            {
                Assert.IsNotNull(l.Root);
                Assert.IsNotNull(l.Leaf);
                Assert.IsNotNull(l.Marker);
            }

            thing = graph.GetById(graphTest.Data.TwoThree.Id);
            var link = (ILink)thing;

            Assert.AreEqual(link.Root.Id, graphTest.Data.Two.Id);

            this.Close();
            ReportSummary();
        }
Beispiel #2
0
        public virtual void StandardGraphTest()
        {
            var graphTest = new BasicThingGraphTest();

            graphTest.DoDetail = this.DoDetail;

            graphTest.Graph = this.Graph;
            graphTest.Setup();
            graphTest.AllTests();
            graphTest.TearDown();

            this.Close();
            ReportSummary();
        }
Beispiel #3
0
 public void AddData(IThingGraph graph, BasicThingGraphTest graphTest)
 {
     graphTest.Graph = graph;
     graphTest.Setup();
     graphTest.FillGraph(graph, graphTest.Data);
 }