コード例 #1
0
        public void ERFullSubGraphTest()
        {
            XMLResultStorage resultStorage = new XMLResultStorage("");
            ResultAssembly goldResult = resultStorage.LoadXML("EROutput.xml");
            ERContainer container = new ERContainer();
            container.SetMatrix("ERInput.txt");
            AbstarctGraphAnalyzer analyzer = new ERAnalyzer(container);

            SortedDictionary<int, int> actualValue = analyzer.GetFullSubGraph();
            SortedDictionary<int, int> expectedValue = goldResult.Results[0].FullSubgraphs;
            Assert.IsTrue(compare(actualValue, expectedValue));
        }