//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: protected void startup(StartupData data) throws Throwable protected internal override void Startup(StartupData data) { MadeUpCommunicationInterface implementation = new MadeUpServerImplementation(newStoreIdForCurrentVersion(data.CreationTime, data.StoreId, data.CreationTime, data.StoreId)); MadeUpServer localServer = new MadeUpServer(implementation, data.Port, data.InternalProtocolVersion, data.ApplicationProtocolVersion, TxChecksumVerifier_Fields.AlwaysMatch, data.ChunkSize); localServer.Init(); localServer.Start(); // The field being non null is an indication of startup, so assign last _server = localServer; }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void impossibleToHaveBiggerChunkSizeThanFrameSize() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ImpossibleToHaveBiggerChunkSizeThanFrameSize() { Builder myBuilder = _builder.chunkSize(MadeUpServer.FRAME_LENGTH + 10); try { MadeUpServer server = myBuilder.Server(); server.Init(); server.Start(); fail("Shouldn't be possible"); } catch (System.ArgumentException) { // Good } try { myBuilder.Client(); fail("Shouldn't be possible"); } catch (System.ArgumentException) { // Good } }