Пример #1
0
        public static StateGraph LoadStateGraph(string statesDirPath, string transitionsDirPath)
        {
            StateGraph result     = new StateGraph();
            var        statePaths = Directory.EnumerateFiles(statesDirPath, "*.json", SearchOption.AllDirectories);

            foreach (var statePath in statePaths)
            {
                result.AddStates(statePath);
            }

            var transitionPaths = Directory.EnumerateFiles(transitionsDirPath, "*.json", SearchOption.AllDirectories);

            foreach (var transitionPath in transitionPaths)
            {
                result.AddTransitions(transitionPath);
            }
            return(result);
        }
Пример #2
0
 public Dictionary <string, int> TestForTransitions(StateGraph graph)
 {
     // Will apply the data collected by LoadTestData().
     // Then return a list of items that idnt pass the test.
     return(null);
 }
Пример #3
0
 public Test(StateGraph graph)
 {
     Graph       = graph;
     TestResults = new Dictionary <string, int>();
 }