예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldAllowIfNotTooLarge() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldAllowIfNotTooLarge()
        {
            MaxTotalSize maxTotalSize = new MaxTotalSize(new PredictableChunkedInput(this, 10, 1), 11);

            maxTotalSize.ReadChunk(Buffers);
            maxTotalSize.ReadChunk(Buffers);
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(expected = org.neo4j.causalclustering.messaging.MessageTooBigException.class) public void shouldThrowExceptioIfToLarge() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldThrowExceptioIfToLarge()
        {
            MaxTotalSize maxTotalSize = new MaxTotalSize(new PredictableChunkedInput(this, 10, 1), 10);

            maxTotalSize.ReadChunk(Buffers);
            maxTotalSize.ReadChunk(Buffers);
        }