예제 #1
0
        public virtual void TestHashCode()
        {
            buf.Clear();
            Int32Buffer @readonly = buf.AsReadOnlyBuffer();
            Int32Buffer duplicate = buf.Duplicate();

            assertTrue(buf.GetHashCode() == @readonly.GetHashCode());

            assertTrue(buf.Capacity > 5);
            duplicate.Position = (buf.Capacity / 2);
            assertTrue(buf.GetHashCode() != duplicate.GetHashCode());
        }
예제 #2
0
        public override void TestHashCode()
        {
            Int32Buffer duplicate = buf.Duplicate();

            assertEquals(buf.GetHashCode(), duplicate.GetHashCode());
        }