private IndexDefineCommand InitIndexDefineCommand(int nbrOfEntries) { IndexDefineCommand command = new IndexDefineCommand(); MutableObjectIntMap <string> indexNames = InitMap(nbrOfEntries); MutableObjectIntMap <string> keys = InitMap(nbrOfEntries); command.Init(indexNames, keys); return(command); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldFailToWriteIndexDefineCommandIfMapIsLargerThanShort() throws java.io.IOException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldFailToWriteIndexDefineCommandIfMapIsLargerThanShort() { // GIVEN InMemoryClosableChannel channel = new InMemoryClosableChannel(1000); IndexDefineCommand command = new IndexDefineCommand(); MutableObjectIntMap <string> largeMap = InitMap(0xFFFF + 1); command.Init(largeMap, largeMap); // WHEN assertTrue(Serialize(channel, command)); }