Пример #1
0
        public virtual void TestHashCode()
        {
            buf.Clear();
            SingleBuffer @readonly = buf.AsReadOnlyBuffer();
            SingleBuffer duplicate = buf.Duplicate();

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

            assertTrue(buf.Capacity > 5);
            duplicate.Position = (buf.Capacity / 2);
            assertTrue(buf.GetHashCode() != duplicate.GetHashCode());
        }
        public override void TestHashCode()
        {
            SingleBuffer duplicate = buf.Duplicate();

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