Пример #1
0
        public void LaunchAndDoNothing()
        {
            ConsoleTester tester = new ConsoleTester("MbUnit.Gui.exe", "/close");

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

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

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

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

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

            tester.Run();
        }
Пример #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);
        }
Пример #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);
        }