Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (FeatureLanguage != null ? FeatureLanguage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ToolLanguage != null ? ToolLanguage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (GeneratorUnitTestProvider != null ? GeneratorUnitTestProvider.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ AllowDebugGeneratedFiles.GetHashCode();
         hashCode = (hashCode * 397) ^ AllowRowTests.GetHashCode();
         hashCode = (hashCode * 397) ^ GenerateAsyncTests.GetHashCode();
         hashCode = (hashCode * 397) ^ (GeneratorPath != null ? GeneratorPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UsesPlugins.GetHashCode();
         return(hashCode);
     }
 }
Exemple #2
0
 protected bool Equals(GeneratorConfiguration other)
 {
     return(Equals(FeatureLanguage, other.FeatureLanguage) && Equals(ToolLanguage, other.ToolLanguage) && string.Equals(GeneratorUnitTestProvider, other.GeneratorUnitTestProvider) && AllowDebugGeneratedFiles.Equals(other.AllowDebugGeneratedFiles) && AllowRowTests.Equals(other.AllowRowTests) && GenerateAsyncTests.Equals(other.GenerateAsyncTests) && string.Equals(GeneratorPath, other.GeneratorPath) && UsesPlugins.Equals(other.UsesPlugins));
 }