Exemplo n.º 1
0
 public void NoChangesMade()
 {
     //[0]"Program3.fs",
     //[1]"Folder1\\File3.fs",
     //[2]"Folder1\\File4.fs",
     //[3]"Folder1\\Sub1\File2.fs",
     //[4]"Folder1\\Sub1\\SubSub1\\File1.fs",
     //[5]"Folder1\\Sub2\\File1.fs",
     //[6]"Folder1\\File1.fs",
     //[7]"Folder2\\File1.fs",
     //[8]"Program.fs",
     //[9]"Program2.fs",
     //[10]"Folder3\\CompileFile1.fs",
     //[11]"Folder3\\ContentFile1.fs",
     //[12]"Folder3\\NoneFile1.fs"
     UIThreadInvoker.Invoke((ThreadInvoker) delegate()
     {
         SwapConfig swap = new SwapConfig("NoneFilesOrder", ref testContext);
         swap.ExpectedOrder(
             "Program3.fs",
             "Folder1\\File3.fs",
             "Folder1\\File4.fs",
             "Folder1\\Sub1\\File2.fs",
             "Folder1\\Sub1\\SubSub1\\File1.fs",
             "Folder1\\Sub2\\File1.fs",
             "Folder1\\File1.fs",
             "Folder2\\File1.fs",
             "Program.fs",
             "Program2.fs",
             "Folder3\\CompileFile1.fs"     //,
             //"Folder3\\ContentFile1.fs",
             //"Folder3\\NoneFile1.fs"
             );
         swap.NoneChanged();
     });
 }
        public void FilesInRoot()
        {
            //[0]"Program3.fs",
            //[1]"Folder1\\File3.fs",
            //[2]"Folder1\\File4.fs",
            //[3]"Folder1\\Sub1\File2.fs",
            //[4]"Folder1\\Sub1\\SubSub1\\File1.fs",
            //[5]"Folder1\\Sub2\\File1.fs",
            //[6]"Folder1\\File1.fs",
            //[7]"Folder2\\File1.fs",
            //[8]"Program.fs",
            //[9]"Program2.fs",
            //[10]"Folder3\\CompileFile1.fs",
            //[11]"Folder3\\ContentFile1.fs",
            //[12]"Folder3\\NoneFile1.fs"
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                SwapConfig swap = new SwapConfig("FilesInRoot", ref testContext);
                swap.Move(new MoveOp{ Index=0, Dir = CompileOrderViewer.Direction.Down })
                    .ExpectedOrder(
                         "Folder1\\File3.fs",
                         "Program3.fs",
                         "Folder1\\File4.fs",
                         "Folder1\\Sub1\\File2.fs",
                         "Folder1\\Sub1\\SubSub1\\File1.fs",
                         "Folder1\\Sub2\\File1.fs",
                         "Folder1\\File1.fs",
                         "Folder2\\File1.fs",
                         "Program.fs",
                         "Program2.fs",
                         "Folder3\\CompileFile1.fs"//,
                    //"Folder3\\ContentFile1.fs",
                    //"Folder3\\NoneFile1.fs"
                         );
                swap.Run();


            });
        }
        public void NoChangesMade()
        {
            //[0]"Program3.fs",
            //[1]"Folder1\\File3.fs",
            //[2]"Folder1\\File4.fs",
            //[3]"Folder1\\Sub1\File2.fs",
            //[4]"Folder1\\Sub1\\SubSub1\\File1.fs",
            //[5]"Folder1\\Sub2\\File1.fs",
            //[6]"Folder1\\File1.fs",
            //[7]"Folder2\\File1.fs",
            //[8]"Program.fs",
            //[9]"Program2.fs",
            //[10]"Folder3\\CompileFile1.fs",
            //[11]"Folder3\\ContentFile1.fs",
            //[12]"Folder3\\NoneFile1.fs"
            UIThreadInvoker.Invoke((ThreadInvoker)delegate()
            {
                SwapConfig swap = new SwapConfig("NoneFilesOrder", ref testContext);
                swap.ExpectedOrder(
                         "Program3.fs",
                         "Folder1\\File3.fs",
                         "Folder1\\File4.fs",
                         "Folder1\\Sub1\\File2.fs",
                         "Folder1\\Sub1\\SubSub1\\File1.fs",
                         "Folder1\\Sub2\\File1.fs",
                         "Folder1\\File1.fs",
                         "Folder2\\File1.fs",
                         "Program.fs",
                         "Program2.fs",
                         "Folder3\\CompileFile1.fs"//,
                         //"Folder3\\ContentFile1.fs",
                         //"Folder3\\NoneFile1.fs"
                         );
                swap.NoneChanged();


            });
        }