Esempio n. 1
0
        public void GetHashCodeTest( )
        {
            var b = new Bookmark
            {
                ConnectorWebsite = "Website",
                SearchTerm       = "Term"
            };

            Assert.AreEqual(
                $"<{b.ConnectorWebsite}> {b.SearchTerm}".GetHashCode( ),
                b.GetHashCode( ));
        }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = FindPredicate.GetHashCode();
         result = (result * 397) ^ Document.GetHashCode();
         result = (result * 397) ^ Bookmark.GetHashCode();
         result = (result * 397) ^ FindMatch.GetHashCode();
         result = (result * 397) ^ IsValid.GetHashCode();
         result = (result * 397) ^ LocationName.GetHashCode();
         result = (result * 397) ^ LocationType.GetHashCode();
         return(result);
     }
 }