Beispiel #1
0
        public void IdsFileLoading()
        {
            DotNetFileProvider prov = new DotNetFileProvider();
            Graph g = GraphXmlDeserializer.GetGraphInstance("ids.xml", prov, ExternalRessourcesLoadingPolicy.None);

            Assert.IsNotNull(g);
        }
Beispiel #2
0
        public void MultipleFilesLoading()
        {
            DotNetFileProvider prov = new DotNetFileProvider();
            Graph g = GraphXmlDeserializer.LoadMultipleFiles(new string[] { "ids_light_5000.xml", "readings_light_5000.xml" }, prov, ExternalRessourcesLoadingPolicy.None);

            Assert.IsNotNull(g);
            var search = g.SearchNode("", "侖");

            Assert.IsNotNull(search);
            Assert.AreEqual <int>(1, search.Count);

            IVertex v = search[0];
        }