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()); }
public override void TestHashCode() { Int32Buffer duplicate = buf.Duplicate(); assertEquals(buf.GetHashCode(), duplicate.GetHashCode()); }