예제 #1
0
        public void BasicGraphTest()
        {
            var test  = new StringGraphTest();
            var graph = new FilteredGraph <string, Edge <string> >(test.Graph);

            graph.ItemFilter = delegate(string s) { return(true); };
            graph.EdgeFilter = delegate(Edge <string> s) { return(true); };
            test.Graph       = graph;
            test.AllTests();
        }
예제 #2
0
        public void StringGraphTest()
        {
            var graphTest = new StringGraphTest();

            Gateway.Open(Iori.FromFileName(FileName));
            Limaki.Data.db4o.Graph <string, Edge <string> > graph =
                new Limaki.Data.db4o.Graph <string, Edge <string> > (Gateway);

            graphTest.Graph = graph;
            graphTest.Setup();
            graphTest.AllTests();
            graph.Clear();

            Gateway.Close();
        }