//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void mustStayCorrectWhenInsertingValuesOfIncreasingLength() throws java.io.IOException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void MustStayCorrectWhenInsertingValuesOfIncreasingLength() { Layout <RawBytes, RawBytes> layout = layout(); using (GBPTree <RawBytes, RawBytes> index = CreateIndex(layout), Writer <RawBytes, RawBytes> writer = index.Writer()) { RawBytes emptyValue = layout.NewValue(); emptyValue.Bytes = new sbyte[0]; for (int keySize = 1; keySize < index.KeyValueSizeCap(); keySize++) { RawBytes key = layout.NewKey(); key.Bytes = new sbyte[keySize]; writer.Put(key, emptyValue); } } }
protected internal override void AfterTreeInstantiation(GBPTree <StringIndexKey, NativeIndexValue> tree) { _validator = new NativeIndexKeyLengthValidator <Value>(tree.KeyValueSizeCap(), layout); }
protected internal override void AfterTreeInstantiation(GBPTree <GenericKey, NativeIndexValue> tree) { _validator = new GenericIndexKeyValidator(tree.KeyValueSizeCap(), layout); }