Lucene.Net.Support.TestByteBuffer.testAllocate C# (CSharp) Метод

testAllocate() приватный статический Метод

private static testAllocate ( ) : void
Результат void
        private static void testAllocate()
        {
            // An IllegalArgumentException will be thrown for negative capacities.
            tryCatch((Buffer)null, typeof(ArgumentException), () =>
            {
                ByteBuffer.Allocate(-1);
            });

            // LUCENENET: AllocateDirect not implemented
            //tryCatch((Buffer)null, typeof(ArgumentException), () =>
            //{
            //    ByteBuffer.AllocateDirect(-1);
            //});

            // LUCENENET: AllocateDirect not implemented
            tryCatch((Buffer)null, typeof(NotImplementedException), () =>
            {
                ByteBuffer.AllocateDirect(-1);
            });
        }