public int Execute()

in BoostTestAdapterNunit/BoostTestExecutorTest.cs [297:343]


            public int Execute(BoostTestRunnerCommandLineArgs args, BoostTestRunnerSettings settings, IProcessExecutionContext context)
            {
                this.ExecutionArgs.Add(new MockBoostTestRunnerExecutionArgs()
                {
                    Arguments = args,
                    Settings = settings,
                    Context = context
                });

                Assert.That(args.ReportFile, Is.Not.Null);
                Assert.That(args.ReportFormat, Is.EqualTo(OutputFormat.XML));

                Assert.That(args.LogFile, Is.Not.Null);
                Assert.That(args.LogFormat, Is.EqualTo(OutputFormat.XML));

                string temp = Path.GetDirectoryName(Path.GetTempPath());

                Assert.That(Path.GetDirectoryName(args.ReportFile), Is.EqualTo(temp));
                Assert.That(Path.GetDirectoryName(args.LogFile), Is.EqualTo(temp));

                if (!string.IsNullOrEmpty(args.StandardOutFile))
                {
                    Assert.That(Path.GetDirectoryName(args.StandardOutFile), Is.EqualTo(temp));
                }

                if (!string.IsNullOrEmpty(args.StandardErrorFile))
                {
                    Assert.That(Path.GetDirectoryName(args.StandardErrorFile), Is.EqualTo(temp));
                }

                // Create empty result files just in case we are running via the source batching strategy

                Copy("BoostTestAdapterNunit.Resources.ReportsLogs.Empty.sample.test.log.xml", args.LogFile);
                Copy("BoostTestAdapterNunit.Resources.ReportsLogs.Empty.sample.test.report.xml", args.ReportFile);

                // Copy the default result files to a temporary location so that they can eventually be read as a test result collection

                foreach (string test in args.Tests)
                {
                    TestResources resources = Parent.TestResourceProvider(this.Source, test);

                    Copy(resources.ReportFilePath, args.ReportFile);
                    Copy(resources.LogFilePath, args.LogFile);
                }

                return 0;
            }