protected override void AssertGetHashCode( Timestamp ts )
        {
            unchecked
            {
                ByteArrayTimestamp target = ( ByteArrayTimestamp )ts;

                Int32 expected = ( target.Value.GetHashCode() * 35 ) ^ 73;
                Int32 actual = target.GetHashCode();

                Assert.AreEqual<Int32>( expected, actual );
            }
        }
Esempio n. 2
0
		protected virtual void AssertGetHashCode( Timestamp ts )
		{
			Int32 expected = 0;
			Int32 actual = ts.GetHashCode();

			Assert.AreEqual<Int32>( expected, actual );
		}
Esempio n. 3
0
 /// <summary>
 /// Determines whether the specified <see cref="T:Timestamp"/> is equal to the current <see cref="T:Timestamp"/>.
 /// </summary>
 /// <param name="obj">The <see cref="T:Timestamp"/> to compare with the current <see cref="T:Timestamp"/>.</param>
 /// <returns>
 /// true if the specified <see cref="T:Timestamp"/> is equal to the current <see cref="T:Timestamp"/>; otherwise, false.
 /// </returns>
 public abstract Boolean Equals( Timestamp obj );