public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (CommunicationVersion.Length != 0) { hash ^= CommunicationVersion.GetHashCode(); } if (LogPath.Length != 0) { hash ^= LogPath.GetHashCode(); } hash ^= brainParameters_.GetHashCode(); if (PackageVersion.Length != 0) { hash ^= PackageVersion.GetHashCode(); } if (capabilities_ != null) { hash ^= Capabilities.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Seed != 0) { hash ^= Seed.GetHashCode(); } if (CommunicationVersion.Length != 0) { hash ^= CommunicationVersion.GetHashCode(); } if (PackageVersion.Length != 0) { hash ^= PackageVersion.GetHashCode(); } if (capabilities_ != null) { hash ^= Capabilities.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void GivesHashCodeOfName() { var package1 = new PackageVersion(); package1.Name = "test2"; Assert.AreEqual("test2".GetHashCode(), package1.GetHashCode()); }
public override int GetHashCode() { int hashcode = Type.GetHashCode(); if (SourceFolder != null) { hashcode += SourceFolder.GetHashCode(); } if (SourceRelPath != null) { hashcode += SourceRelPath.GetHashCode(); } if (PackageName != null) { hashcode += PackageName.GetHashCode(); } if (PackageVersion != null) { hashcode += PackageVersion.GetHashCode(); } if (GitUrl != null) { hashcode += GitUrl.GetHashCode(); } if (GitBranch != null) { hashcode += GitBranch.GetHashCode(); } return(hashcode); }
public override int GetHashCode() { unchecked { int result = Title.GetHashCode(); result = (result * 397) ^ Command.GetHashCode(); result = (result * 397) ^ Arguments.GetHashCode(); result = (result * 397) ^ InitialDirectory.GetHashCode(); result = (result * 397) ^ OutputToImmediateWindow.GetHashCode(); result = (result * 397) ^ ReportTitle.GetHashCode(); result = (result * 397) ^ ArgsCollectorDllPath.GetHashCode(); result = (result * 397) ^ ArgsCollectorClassName.GetHashCode(); result = (result * 397) ^ ToolDirPath.GetHashCode(); result = (result * 397) ^ (PackageVersion == null ? 0 : PackageVersion.GetHashCode()); result = (result * 397) ^ (PackageIdentifier == null ? 0 : PackageIdentifier.GetHashCode()); result = (result * 397) ^ (PackageName == null ? 0 : PackageName.GetHashCode()); return(result); } }
public override int GetHashCode() { unchecked { return(((PackageId != null ? PackageId.ToLower(EnUsCulture).GetHashCode() : 0) * 397) ^ (PackageVersion != null ? PackageVersion.GetHashCode() : 0)); } }
public void GetHashCodeTest() { var result = _packageVersion.GetHashCode(); Assert.IsTrue(result.NotNull()); }