Example #1
0
 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));
 }
Example #2
0
 public void RTest_Noncommand()
 {
     string[] args = new string[] { "-w", "..\\..\\..\\InputTest\\smallrinput.txt" };
     WordListCommandLineSolver.CoreCommandLineSolver(args);
     string[] solution = FileReader();
     //Assert.IsTrue(CheckOutputLegal(solution, sc, ec));
 }
Example #3
0
        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));
        }
Example #4
0
        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);
        }
Example #5
0
 public void RTest_16()
 {
     string[] args = new string[] { "-c", "-r", "-h", "g", "..\\..\\..\\InputTest\\input_r3.txt" };
     WordListCommandLineSolver.CoreCommandLineSolver(args);
 }
Example #6
0
 public void RTest_6()
 {
     string[] args = new string[] { "-w", "-r", "-h", "a", "-t", "z", "..\\..\\..\\InputTest\\input_r2.txt" };
     WordListCommandLineSolver.CoreCommandLineSolver(args);
 }
Example #7
0
 public void CommandIllegal()
 {
     string[] args = new string[] { "-x", "..\\..\\..\\InputTest\\input.txt" };
     WordListCommandLineSolver.CoreCommandLineSolver(args);
 }
Example #8
0
 public void NotExistedFile()
 {
     string[] args = new string[] { "-w", "-h", "z", "..\\..\\..\\InputTest\\NotExistedFile.txt" };
     WordListCommandLineSolver.CoreCommandLineSolver(args);
 }
Example #9
0
 public void DuplicateCommand3()
 {
     string[] args = new string[] { "-w", "-t", "z", "-t", "z", "..\\..\\..\\InputTest\\input9.txt" };
     WordListCommandLineSolver.CoreCommandLineSolver(args);
 }
Example #10
0
 static void Main(string[] args)
 {
     WordListCommandLineSolver.CoreCommandLineSolver(args);
 }