public void readIntoBufferWithOffsetAfterDispose()
        {
            JavaInputStreamAdapter testSubject = NewTestSubject("asdf", Encoding.ASCII);

            testSubject.Dispose();

            byte[] buff = new byte[2];

            try
            {
                testSubject.read(buff, 1, 2);
            }
            catch (Exception ex)
            {
                java.io.IOException ioe = ex as java.io.IOException;

                if (ioe != null)
                {
                    System.Exception cause = ioe.getCause();
                    Assert.IsNotNull(cause);
                    Assert.IsInstanceOfType(typeof(System.ObjectDisposedException), cause);
                }

                throw;
            }
        }
        public void resetAfterDispose()
        {
            JavaInputStreamAdapter testSubject = NewTestSubject("asdf", Encoding.ASCII);

            testSubject.Dispose();

            testSubject.reset();
        }
        public void availableAfterDispose()
        {
            JavaInputStreamAdapter testSubject = NewTestSubject("asdf", Encoding.ASCII);

            testSubject.Dispose();

            int available = testSubject.available();

            Assert.AreEqual(0, available);
        }
        public void skipAfterDispose()
        {
            JavaInputStreamAdapter testSubject = NewTestSubject("asdf", Encoding.ASCII);

            testSubject.Dispose();

            try
            {
                testSubject.skip(1);
            }
            catch (Exception ex)
            {
                java.io.IOException ioe = ex as java.io.IOException;

                if (ioe != null)
                {
                    System.Exception cause = ioe.getCause();
                    Assert.IsNotNull(cause);
                    Assert.IsInstanceOfType(typeof(System.ObjectDisposedException), cause);
                }

                throw;
            }
        }