public void RTest_23() { string[] args = new string[] { "-c", "-r", "-t", "u", "..\\..\\..\\InputTest\\input_r5.txt" }; WordListCommandLineSolver.CoreCommandLineSolver(args); string[] solution = FileReader(); //Assert.IsTrue(CheckOutputLegal(solution, sc, ec)); }
public void RTest_Noncommand() { string[] args = new string[] { "-w", "..\\..\\..\\InputTest\\smallrinput.txt" }; WordListCommandLineSolver.CoreCommandLineSolver(args); string[] solution = FileReader(); //Assert.IsTrue(CheckOutputLegal(solution, sc, ec)); }
public void Test_1() { string[] args = new string[] { "-w", "-r", "-h", "a", "..\\..\\..\\InputTest\\input1.txt" }; char sc = '\0'; char ec = '\0'; for (int i = 0; i < args.Length; i++) { if (args[i] == "-h") { sc = char.Parse(args[i + 1]); } if (args[i] == "-t") { ec = char.Parse(args[i + 1]); } } WordListCommandLineSolver.CoreCommandLineSolver(args); string[] solution = FileReader(); //Assert.IsTrue(CheckOutputLegal(solution, sc, ec)); }
public void Test_6() { string[] args = new string[] { "-w", "-r", "-t", "y", "-h", "x", "..\\..\\..\\InputTest\\input6.txt" }; char sc = '\0'; char ec = '\0'; for (int i = 0; i < args.Length; i++) { if (args[i] == "-h") { sc = char.Parse(args[i + 1]); } if (args[i] == "-t") { ec = char.Parse(args[i + 1]); } } int ResultCount = get_wordchain(args, args.Length); string[] solution = FileReader(); //Assert.IsFalse(CheckOutputLegal(solution, sc, ec)); WordListCommandLineSolver.CoreCommandLineSolver(args); }
public void RTest_16() { string[] args = new string[] { "-c", "-r", "-h", "g", "..\\..\\..\\InputTest\\input_r3.txt" }; WordListCommandLineSolver.CoreCommandLineSolver(args); }
public void RTest_6() { string[] args = new string[] { "-w", "-r", "-h", "a", "-t", "z", "..\\..\\..\\InputTest\\input_r2.txt" }; WordListCommandLineSolver.CoreCommandLineSolver(args); }
public void CommandIllegal() { string[] args = new string[] { "-x", "..\\..\\..\\InputTest\\input.txt" }; WordListCommandLineSolver.CoreCommandLineSolver(args); }
public void NotExistedFile() { string[] args = new string[] { "-w", "-h", "z", "..\\..\\..\\InputTest\\NotExistedFile.txt" }; WordListCommandLineSolver.CoreCommandLineSolver(args); }
public void DuplicateCommand3() { string[] args = new string[] { "-w", "-t", "z", "-t", "z", "..\\..\\..\\InputTest\\input9.txt" }; WordListCommandLineSolver.CoreCommandLineSolver(args); }
static void Main(string[] args) { WordListCommandLineSolver.CoreCommandLineSolver(args); }