Пример #1
0
 public void GetHashCodeTest()
 {
     Assert.AreEqual(Test1.GetHashCode(), Test1.GetHashCode(), "#F01");
     Assert.IsTrue(Test1.GetHashCode() != Test2.GetHashCode(), "#F02");
     Assert.AreEqual(Test3.GetHashCode(), Test2.GetHashCode(), "#F02");
 }
Пример #2
0
 public void GetHashCodeTest()
 {
     Assert.Equal(_test1.GetHashCode(), _test1.GetHashCode());
     Assert.NotEqual(_test1.GetHashCode(), _test2.GetHashCode());
     Assert.Equal(_test3.GetHashCode(), _test2.GetHashCode());
 }
Пример #3
0
 public override int GetHashCode()
 {
     return(_guid.GetHashCode());
 }
Пример #4
0
        public override int GetHashCode()
        {
            var hashCode = _sql.GetHashCode();

            return(hashCode);
        }