示例#1
0
        /// <summary>
        /// Run WixUnit on a particular test
        /// </summary>
        /// <param name="test">The test to run</param>
        /// <returns>The results of the run</returns>
        public Result RunTest(string test)
        {
            // Create a copy of the this object with a new list of tests
            WixUnit wixUnit = new WixUnit(this);

            wixUnit.Tests = new List <string>();
            wixUnit.Tests.Add(test);

            return(wixUnit.Run());
        }
示例#2
0
文件: WixUnit.cs 项目: zooba/wix3
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="wixUnit">The object to copy</param>
 public WixUnit(WixUnit wixUnit)
     : this()
 {
     this.WixUnitEnvironmentVariables = wixUnit.WixUnitEnvironmentVariables;
     this.Help = wixUnit.Help;
     this.NoTidy = wixUnit.NoTidy;
     this.OtherArguments = wixUnit.OtherArguments;
     this.RunFailedTests = wixUnit.RunFailedTests;
     this.SingleThreaded = wixUnit.SingleThreaded;
     this.TestFile = wixUnit.TestFile;
     this.Tests = wixUnit.Tests;
     this.Update = wixUnit.Update;
     this.Validate = wixUnit.Validate;
     this.VerboseOutput = wixUnit.VerboseOutput;
     this.WorkingDirectory = wixUnit.WorkingDirectory;
 }
示例#3
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="wixUnit">The object to copy</param>
 public WixUnit(WixUnit wixUnit)
     : this()
 {
     this.WixUnitEnvironmentVariables = wixUnit.WixUnitEnvironmentVariables;
     this.Help             = wixUnit.Help;
     this.NoTidy           = wixUnit.NoTidy;
     this.OtherArguments   = wixUnit.OtherArguments;
     this.RunFailedTests   = wixUnit.RunFailedTests;
     this.SingleThreaded   = wixUnit.SingleThreaded;
     this.TestFile         = wixUnit.TestFile;
     this.Tests            = wixUnit.Tests;
     this.Update           = wixUnit.Update;
     this.Validate         = wixUnit.Validate;
     this.VerboseOutput    = wixUnit.VerboseOutput;
     this.WorkingDirectory = wixUnit.WorkingDirectory;
 }
示例#4
0
文件: WixUnit.cs 项目: zooba/wix3
        /// <summary>
        /// Run WixUnit on a particular test
        /// </summary>
        /// <param name="test">The test to run</param>
        /// <returns>The results of the run</returns>
        public Result RunTest(string test)
        {
            // Create a copy of the this object with a new list of tests
            WixUnit wixUnit = new WixUnit(this);
            wixUnit.Tests = new List<string>();
            wixUnit.Tests.Add(test);

            return wixUnit.Run();
        }