Пример #1
0
        public void CsvTokenizerTest_Disposed()
        {
            StringReader reader    = new StringReader("");
            CsvTokenizer tokenizer = new CsvTokenizer(reader);

            tokenizer.Dispose();

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

            Assert.ThrowsException <ObjectDisposedException>(() =>
            {
                tokenizer.NextToken();
            });
        }