Beispiel #1
0
 public static void GetUnsetValuesFrom(this IXmlOptions self, IXmlOptions other)
 {
     self.AdditionalTestExecutionParam = self.AdditionalTestExecutionParam ?? other.AdditionalTestExecutionParam;
     self.CatchExceptions       = self.CatchExceptions ?? other.CatchExceptions;
     self.BreakOnFailure        = self.BreakOnFailure ?? other.BreakOnFailure;
     self.MaxNrOfThreads        = self.MaxNrOfThreads ?? other.MaxNrOfThreads;
     self.NrOfTestRepetitions   = self.NrOfTestRepetitions ?? other.NrOfTestRepetitions;
     self.ParallelTestExecution = self.ParallelTestExecution ?? other.ParallelTestExecution;
     self.PrintTestOutput       = self.PrintTestOutput ?? other.PrintTestOutput;
     self.RunDisabledTests      = self.RunDisabledTests ?? other.RunDisabledTests;
     self.ShuffleTests          = self.ShuffleTests ?? other.ShuffleTests;
     self.ShuffleTestsSeed      = self.ShuffleTestsSeed ?? other.ShuffleTestsSeed;
     self.TestDiscoveryRegex    = self.TestDiscoveryRegex ?? other.TestDiscoveryRegex;
     self.PathExtension         = self.PathExtension ?? other.PathExtension;
     self.BatchForTestSetup     = self.BatchForTestSetup ?? other.BatchForTestSetup;
     self.BatchForTestTeardown  = self.BatchForTestTeardown ?? other.BatchForTestTeardown;
     self.TraitsRegexesAfter    = self.TraitsRegexesAfter ?? other.TraitsRegexesAfter;
     self.TraitsRegexesBefore   = self.TraitsRegexesBefore ?? other.TraitsRegexesBefore;
     self.TestNameSeparator     = self.TestNameSeparator ?? other.TestNameSeparator;
     self.DebugMode             = self.DebugMode ?? other.DebugMode;
 }
Beispiel #2
0
 public Options(IXmlOptions xmlOptions, ILogger logger)
 {
     this.XmlOptions       = xmlOptions;
     this.TestEnvironment  = new TestEnvironment(this, logger);
     this.RegexTraitParser = new RegexTraitParser(TestEnvironment);
 }