//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldComputePageCatalogueOverThreePages() public virtual void ShouldComputePageCatalogueOverThreePages() { // given StubCollector collector = new StubCollector(4); collector.Visit(_key, _value); collector.Visit(_key, _value); // when _key.putInt(0, 24); collector.Visit(_key, _value); _key.putInt(0, 62); collector.Visit(_key, _value); _key.putInt(0, 78); collector.Visit(_key, _value); _key.putInt(0, 84); collector.Visit(_key, _value); _key.putInt(0, 96); collector.Visit(_key, _value); _key.putInt(0, 128); collector.Visit(_key, _value); _key.putInt(0, 133); collector.Visit(_key, _value); // then assertArrayEquals(new sbyte[] { 0, 0, 0, 24, 0, 0, 0, 62, 0, 0, 0, 78, 0, 0, 0, unchecked (( sbyte )128), 0, 0, 0, unchecked (( sbyte )133), 0, 0, 0, unchecked (( sbyte )133) }, collector.PageCatalogue()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldComputeCatalogueWhenSingleDataEntryInPage() public virtual void ShouldComputeCatalogueWhenSingleDataEntryInPage() { // given StubCollector collector = new StubCollector(4, "a", "b"); _value.putInt(0, -1); collector.Visit(_key, _value); collector.Visit(_key, _value); collector.Visit(_key, _value); // when _key.putInt(0, 16); collector.Visit(_key, _value); _key.putInt(0, 32); collector.Visit(_key, _value); // then assertArrayEquals(new sbyte[] { 0, 0, 0, 16, 0, 0, 0, 16, 0, 0, 0, 32, 0, 0, 0, 32 }, collector.PageCatalogue()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldComputePageCatalogueWhenHeaderCoversEntireFirstPage() public virtual void ShouldComputePageCatalogueWhenHeaderCoversEntireFirstPage() { // given StubCollector collector = new StubCollector(4, "a", "b", "c"); _value.putInt(0, -1); collector.Visit(_key, _value); collector.Visit(_key, _value); collector.Visit(_key, _value); collector.Visit(_key, _value); // when _key.putInt(0, 16); collector.Visit(_key, _value); _key.putInt(0, 32); collector.Visit(_key, _value); // then assertArrayEquals(new sbyte[] { 0, 0, 0, 16, 0, 0, 0, 32 }, collector.PageCatalogue()); }
internal Format(KeyValueDatabaseStoreFormatTest outerInstance, params string[] defaultHeaderFields) : this(outerInstance, StubCollector.HeaderFields(defaultHeaderFields)) { this._outerInstance = outerInstance; }
private void ResetWriter(params string[] header) { _collector = new StubCollector(ENTRIES_PER_PAGE, header); _writer = new KeyValueWriter(_collector, _stub); }