GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int
Пример #1
0
		public void Should_not_be_equal_with_different_signing_keys()
		{
			var key1 = new BusinessKey("client-id", "signing-key1");
			var key2 = new BusinessKey("client-id", "signing-key2");

			Assert.NotEqual(key1, key2);
			Assert.NotEqual(key1.GetHashCode(), key2.GetHashCode());
		}
Пример #2
0
		public void Should_be_equal_by_value()
		{
			var key1 = new BusinessKey("client-id", "signing-key");
			var key2 = new BusinessKey("client-id", "signing-key");

			Assert.Equal(key1, key2);
			Assert.Equal(key1.GetHashCode(), key2.GetHashCode());
		}