Esempio n. 1
0
        public void LaunchAndDoNothing()
        {
            ConsoleTester tester = new ConsoleTester("MbUnit.Gui.exe", "/close");

            tester.ExpectedExitCode = 100;
            tester.Run();
            System.Threading.Thread.Sleep(1000);
        }
Esempio n. 2
0
        public void RunTestsWithConsole()
        {
            ConsoleTester runner = new ConsoleTester(
                "MbUnit.Cons.exe",
                Path.Combine(directory, "ParentAssembly.dll")
                );

            runner.Run();
        }
Esempio n. 3
0
        public void SimpleProject()
        {
            // load project file
            ConsoleTester tester = new ConsoleTester(
                this.msbuildPath,
                @"Tasks\MSBuild\msbuild.sample1.xml"
                );

            tester.Run();
        }
Esempio n. 4
0
        public void MultipleSetOfAssemblies()
        {
            // load project file
            ConsoleTester tester = new ConsoleTester(
                this.nantPath,
                "-buildfile:Tasks/NAnt/nant.sample3.xml",
                "tests"
                );

            tester.Run();
        }
Esempio n. 5
0
        public void DifferentReports()
        {
            // load project file
            ConsoleTester tester = new ConsoleTester(
                this.nantPath,
                "-buildfile:Tasks/NAnt/nant.sample2.xml",
                "tests"
                );

            tester.Run();
        }
Esempio n. 6
0
        public void SimpleProject()
        {
            // load project file
            ConsoleTester tester = new ConsoleTester(
                this.nantPath,
                "-buildfile:Tasks/NAnt/nant.sample.xml",
                "tests"
                );

            tester.Run();
        }
Esempio n. 7
0
        //   [Test]
        public void LaunchRunProjectCloseGui()
        {
            ConsoleTester tester = new ConsoleTester(
                "MbUnit.Gui.exe",
                "/run",
                @"Gui\demo.mbunit",
                "/close");

            tester.ExpectedExitCode = 100;
            tester.Run();
            System.Threading.Thread.Sleep(1000);
        }
Esempio n. 8
0
        public void LaunchRunParentAssenblyAndCloseGui()
        {
            ConsoleTester tester = new ConsoleTester(
                "MbUnit.Gui.exe",
                "/run",
                "ParentAssembly.dll",
                "/close");

            tester.ExpectedExitCode = 100;
            tester.Run();
            System.Threading.Thread.Sleep(1000);
        }