Ejemplo n.º 1
0
 public void Initialize()
 {
     IOSamples.ClearFolder();
     IOSamples.CreateFolderAndFiles("output", "1.txt", "2.yml", "3.json");
     IOSamples.CreateFolderAndFiles("output/A", "1.txt");
     IOSamples.CreateFolderAndFiles("output/B", "1.txt", "2.yml");
     IOSamples.CreateFolderAndFiles("output/C/D", "3.json");
     IOSamples.CreateFolder("output/C/E");
 }
        public void Initialize()
        {
            IOSamples.ClearFolder();

            IOSamples.CreateFiles("T1.txt", "Y1.yml", "J1.json");
            IOSamples.CreateFolderAndFiles("inner1", "T2.txt");

            // empty folder
            IOSamples.CreateFolder("inner2");

            IOSamples.CreateFolderAndFiles("inner3", "Y2.yml");
            IOSamples.CreateFolderAndFiles("inner3/deeper", "J2.json", "T3.txt");
        }
Ejemplo n.º 3
0
        public void Timeout(bool waitForExist)
        {
            IOSamples.CreateFolder("output");

            object exec() => WorkflowTester.Run(new WaitFile()
            {
                Timeout      = 2000,
                WaitForExist = waitForExist,
            }, GetArgs(IOSamples.GetTestPath("output/missing.txt")));

            if (waitForExist)
            {
                Assert.ThrowsException <TimeoutException>(exec);
            }
            else
            {
                Assert.ThrowsException <FileNotFoundException>(exec);
            }
        }
 public static void Initialize(TestContext _)
 {
     IOSamples.CreateFolder("output");
 }