GetHashCode() public method

public GetHashCode ( ) : int
return int
Ejemplo n.º 1
0
        public void TestGetHashCode_EmptyBinary()
        {
            var target = new MessagePackString(new byte[0], false);

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

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

            Assert.AreEqual(String.Empty.GetHashCode(), target.GetHashCode());
        }
Ejemplo n.º 4
0
        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();
 }
Ejemplo n.º 7
0
		public void TestGetHashCode_EmptyBinary()
		{
			var target = new MessagePackString( new byte[ 0 ] );
			// OK, returned value is implementation detail.
			target.GetHashCode();
		}
Ejemplo n.º 8
0
		public void TestGetHashCode_EmptyString()
		{
			var target = new MessagePackString( String.Empty );
			Assert.AreEqual( String.Empty.GetHashCode(), target.GetHashCode() );
		}
Ejemplo n.º 9
0
		public void TestGetHashCode_StringifiableBinary()
		{
			var target = new MessagePackString( new byte[] { ( byte )'A', ( byte )'B', ( byte )'C' } );
			Assert.AreEqual( "ABC".GetHashCode(), target.GetHashCode() );
		}
Ejemplo n.º 10
0
		public void TestGetHashCode_String()
		{
			var target = new MessagePackString( "ABC" );
			Assert.AreEqual( "ABC".GetHashCode(), target.GetHashCode() );
		}
Ejemplo n.º 11
0
		public void TestGetHashCode_Binary()
		{
			var target = new MessagePackString( new byte[] { 0xFF, 0xED, 0xCB } );
			// OK, returned value is implementation detail.
			target.GetHashCode();
		}
Ejemplo n.º 12
0
		public void TestGetHashCode_EmptyBinary()
		{
			var target = new MessagePackString( new byte[ 0 ] );
			var valueIsImplementationDetail = target.GetHashCode();
		}
Ejemplo n.º 13
0
		public void TestGetHashCode_Binary()
		{
			var target = new MessagePackString( new byte[] { 0xFF, 0xED, 0xCB } );
			var valueIsImplementationDetail = target.GetHashCode();
		}