Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (ToolLanguage != null ? ToolLanguage.GetHashCode() : 0);
         result = (result * 397) ^ (BindingCulture != null ? BindingCulture.GetHashCode() : 0);
         result = (result * 397) ^ DetectAmbiguousMatches.GetHashCode();
         result = (result * 397) ^ StopAtFirstError.GetHashCode();
         result = (result * 397) ^ MissingOrPendingStepsOutcome.GetHashCode();
         result = (result * 397) ^ TraceSuccessfulSteps.GetHashCode();
         result = (result * 397) ^ TraceTimings.GetHashCode();
         result = (result * 397) ^ MinTracedDuration.GetHashCode();
         return(result);
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (FeatureLanguage != null ? FeatureLanguage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ToolLanguage != null ? ToolLanguage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BindingCulture != null ? BindingCulture.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RuntimeUnitTestProvider != null ? RuntimeUnitTestProvider.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DetectAmbiguousMatches.GetHashCode();
         hashCode = (hashCode * 397) ^ StopAtFirstError.GetHashCode();
         hashCode = (hashCode * 397) ^ MissingOrPendingStepsOutcome.GetHashCode();
         hashCode = (hashCode * 397) ^ TraceSuccessfulSteps.GetHashCode();
         hashCode = (hashCode * 397) ^ TraceTimings.GetHashCode();
         hashCode = (hashCode * 397) ^ MinTracedDuration.GetHashCode();
         hashCode = (hashCode * 397) ^ StepDefinitionSkeletonStyle.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 3
0
 protected bool Equals(RuntimeConfiguration other)
 {
     return(Equals(FeatureLanguage, other.FeatureLanguage) && Equals(ToolLanguage, other.ToolLanguage) && Equals(BindingCulture, other.BindingCulture) && string.Equals(RuntimeUnitTestProvider, other.RuntimeUnitTestProvider) && DetectAmbiguousMatches.Equals(other.DetectAmbiguousMatches) && StopAtFirstError.Equals(other.StopAtFirstError) && MissingOrPendingStepsOutcome.Equals(other.MissingOrPendingStepsOutcome) && TraceSuccessfulSteps.Equals(other.TraceSuccessfulSteps) && TraceTimings.Equals(other.TraceTimings) && MinTracedDuration.Equals(other.MinTracedDuration) && StepDefinitionSkeletonStyle.Equals(other.StepDefinitionSkeletonStyle) &&
            (AdditionalStepAssemblies ?? new List <string>()).SequenceEqual(other.AdditionalStepAssemblies ?? new List <string>()));
 }