public void DekoderTestFileParseAble() { for (int i = 1; i <= 6; i++) { string filename = string.Format("testset/test{0:D2}.SWE", i); Dekoder dekoder = new Dekoder(); dekoder.ReadFromFile(filename); Assert.IsNotNull(dekoder.S); } }
private Dictionary <char, string> runSolverFromFile(string filename) { Dekoder dekoder = new Dekoder(); dekoder.ReadFromFile(filename); Solver solver = new Solver(); var solution = solver.Solve(dekoder); return(solution); }
public void SimpleValid() { string filename = "testset/test07.SWE"; Dekoder instance = new Dekoder(); instance.ReadFromFile(filename); Solver s = new Solver(); var solution = s.Solve(instance); Assert.IsNotNull(solution); foreach (KeyValuePair <char, List <string> > keyValuePair in instance.R) { Debug.WriteLine("{0}: {1}", keyValuePair.Key, String.Join(",", keyValuePair.Value)); } }