Dispose() public method

public Dispose ( ) : void
return void
        public void is_disposed_should_reflect_the_disposed_state_of_the_reader()
        {
            var reader = new StubMessageReader();

            Assert.False(reader.IsDisposed);
            reader.Dispose();
            Assert.True(reader.IsDisposed);
        }
        public void read_should_throw_when_it_has_been_reader_has_been_disposed()
        {
            var reader = new StubMessageReader();

            reader.Dispose();

            Assert.Throws<ObjectDisposedException>(() => reader.Read());
        }