コード例 #1
0
 public void GetHashCodeTest()
 {
     // FIXME: Better way to test HashCode
     Assert.Equal(_test1.GetHashCode(), _test1.GetHashCode());
     Assert.True(_test2.GetHashCode() != _test1.GetHashCode());
 }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            var hashCode = _sql.GetHashCode();

            return(hashCode);
        }
コード例 #3
0
 public void GetHashCodeTest()
 {
     // FIXME: Better way to test HashCode
     Assert.AreEqual(Test1.GetHashCode(), Test1.GetHashCode(), "#F01");
     Assert.IsTrue(Test2.GetHashCode() != Test1.GetHashCode(), "#F02");
 }
コード例 #4
0
 public override int GetHashCode() => _sql.GetHashCode();