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

public GetHashCode ( ) : int
Результат int
        public void TestGetHashCode_EmptyBinary()
        {
            var target = new MessagePackString(new byte[0], false);

            // OK, returned value is implementation detail.
            target.GetHashCode();
        }
        public void TestGetHashCode_StringifiableBinary()
        {
            var target = new MessagePackString(new byte[] { ( byte )'A', ( byte )'B', ( byte )'C' }, false);

            Assert.AreEqual("ABC".GetHashCode(), target.GetHashCode());
        }
        public void TestGetHashCode_EmptyString()
        {
            var target = new MessagePackString(String.Empty);

            Assert.AreEqual(String.Empty.GetHashCode(), target.GetHashCode());
        }
        public void TestGetHashCode_String()
        {
            var target = new MessagePackString("ABC");

            Assert.AreEqual("ABC".GetHashCode(), target.GetHashCode());
        }
 public void TestGetHashCode_Binary()
 {
     var target = new MessagePackString(new byte[] { 0xFF, 0xED, 0xCB });
     var valueIsImplementationDetail = target.GetHashCode();
 }
 public void TestGetHashCode_EmptyBinary()
 {
     var target = new MessagePackString(new byte[0]);
     var valueIsImplementationDetail = target.GetHashCode();
 }
Пример #7
0
		public void TestGetHashCode_EmptyBinary()
		{
			var target = new MessagePackString( new byte[ 0 ] );
			// OK, returned value is implementation detail.
			target.GetHashCode();
		}
Пример #8
0
		public void TestGetHashCode_EmptyString()
		{
			var target = new MessagePackString( String.Empty );
			Assert.AreEqual( String.Empty.GetHashCode(), target.GetHashCode() );
		}
Пример #9
0
		public void TestGetHashCode_StringifiableBinary()
		{
			var target = new MessagePackString( new byte[] { ( byte )'A', ( byte )'B', ( byte )'C' } );
			Assert.AreEqual( "ABC".GetHashCode(), target.GetHashCode() );
		}
Пример #10
0
		public void TestGetHashCode_String()
		{
			var target = new MessagePackString( "ABC" );
			Assert.AreEqual( "ABC".GetHashCode(), target.GetHashCode() );
		}
Пример #11
0
		public void TestGetHashCode_Binary()
		{
			var target = new MessagePackString( new byte[] { 0xFF, 0xED, 0xCB } );
			// OK, returned value is implementation detail.
			target.GetHashCode();
		}
Пример #12
0
		public void TestGetHashCode_EmptyBinary()
		{
			var target = new MessagePackString( new byte[ 0 ] );
			var valueIsImplementationDetail = target.GetHashCode();
		}
Пример #13
0
		public void TestGetHashCode_Binary()
		{
			var target = new MessagePackString( new byte[] { 0xFF, 0xED, 0xCB } );
			var valueIsImplementationDetail = target.GetHashCode();
		}