private void AssertCorrectLength(ConstraintRule constraintRule) { // GIVEN ByteBuffer buffer = ByteBuffer.wrap(SchemaRuleSerialization.Serialize(constraintRule)); // THEN assertThat(SchemaRuleSerialization.LengthOf(constraintRule), equalTo(buffer.capacity())); }
private void AssertCorrectLength(StoreIndexDescriptor indexRule) { // GIVEN ByteBuffer buffer = ByteBuffer.wrap(SchemaRuleSerialization.Serialize(indexRule)); // THEN assertThat(SchemaRuleSerialization.LengthOf(indexRule), equalTo(buffer.capacity())); }