示例#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);
        }