예제 #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();
        }