/// <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()); }
/// <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; }
/// <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(); }