Example #1
0
 public void TestXmlFile_test_50_2()
 {
     graphShortestPathAssertionHelper.SetConsoleOutputDesired(ConsoleOutputDesired.ALL);
     pathFinderFactories.Add(new PathFinderFactoryYanQi());
     pathFinderFactories.Add(new PathFinderFactoryBsmock());
     pathFinderFactories.Add(new PathFinderFactoryQuikGraph());
     //pathFinderFactories.Add(new PathFinderFactoryQuickGraph());
     //pathFinderFactories.Add(new PathFinderFactoryParrisha()); // fails
     runTestCaseDefinedInXmlFile(DIRECTORY_FOR_XML_TEST_FILES_FROM_YANQI, XML_FILE_BIG_TEST__50_2, pathFinderFactories);
 }
Example #2
0
        public void SetUp()
        {
            edgeUtility = EdgeUtility <Edge, Vertex, Weight> .Create <Edge, Vertex, Weight>();

            //fileReaderForGraphTestData = FileReaderForGraphEdges<Edge, Vertex, Weight>.CreateFileReaderForGraphEdges(new EdgeFactoryDefault());

            graphShortestPathAssertionHelper = new GraphShortestPathAssertionHelper(false);

            xmlFileReader  = new XmlFileReader();
            resourceReader = new ResourceReader();
            edgeParser     = EdgeParser <Edge, Vertex, Weight> .CreateEdgeParserDefault();


            pathFinderFactoriesForAllImplementations = PathFinderFactories.CreatePathFinderFactories();
            pathFinderFactories = new List <PathFinderFactory>();        // set to empty here before each test, so add to the list if it needs to be used

            pathsToResourcesFoldersWithXmlTestFiles = new List <string> {
                DIRECTORY_FOR_XML_TEST_FILES_FROM_BSMOCK,
                DIRECTORY_FOR_XML_TEST_FILES_FROM_YANQI,
                BASE_DIRECTORY_FOR_XML_TEST_FILES             // yes the base directory itself also currently has some xml test files
            };
            graphShortestPathAssertionHelper.SetConsoleOutputDesired(ConsoleOutputDesired.NONE);
        }