public void NonCloseableStreamReader_Construction_5() { string fileName = _GetFileName(); NonCloseableStreamReader reader = new NonCloseableStreamReader(fileName, false); reader.Dispose(); }
public void NonCloseableStreamReader_Construction_3() { Stream stream = Stream.Null; NonCloseableStreamReader reader = new NonCloseableStreamReader(stream, false); Assert.AreSame(stream, reader.BaseStream); reader.Dispose(); }
public void NonCloseableStreamReader_Construction_6() { string fileName = _GetFileName(); Encoding encoding = Encoding.ASCII; NonCloseableStreamReader reader = new NonCloseableStreamReader(fileName, encoding); Assert.AreSame(encoding, reader.CurrentEncoding); reader.Dispose(); }
public void NonCloseableStreamReader_Construction_4() { Stream stream = Stream.Null; Encoding encoding = Encoding.ASCII; NonCloseableStreamReader reader = new NonCloseableStreamReader(stream, encoding); Assert.AreSame(stream, reader.BaseStream); Assert.AreSame(encoding, reader.CurrentEncoding); reader.Dispose(); }
public void NonCloseableStreamReader_Construction_9() { Stream stream = Stream.Null; Encoding encoding = Encoding.ASCII; StreamReader innerReader = new StreamReader(stream, encoding); NonCloseableStreamReader outerReader = new NonCloseableStreamReader(innerReader); Assert.AreSame(stream, outerReader.BaseStream); Assert.AreSame(encoding, outerReader.CurrentEncoding); outerReader.Dispose(); innerReader.Dispose(); }