public void WriteReadFile()
        {
            TextFileWriter writer = new TextFileWriter(path);
            writer.Write(content);

            TextFileReader reader = new TextFileReader(path);
            
            Assert.AreEqual(content, reader.GetString());
        }
Ejemplo n.º 2
0
        public void WriteReadFile()
        {
            TextFileWriter writer = new TextFileWriter(path);

            writer.Write(content);

            TextFileReader reader = new TextFileReader(path);

            Assert.AreEqual(content, reader.GetString());
        }
 public void TextFileWriterWithNullBuffersize()
 {
     TextFileWriter writer = new TextFileWriter(path);
     writer.Write( new MemoryStream( Encoding.Default.GetBytes("text") ) , 0 );
 }
 public void TextFileWriterWithNullStream()
 {
     TextFileWriter writer = new TextFileWriter(path);
     writer.Write(null, 2);
 }
Ejemplo n.º 5
0
        public void TextFileWriterWithNullBuffersize()
        {
            TextFileWriter writer = new TextFileWriter(path);

            writer.Write(new MemoryStream(Encoding.Default.GetBytes("text")), 0);
        }
Ejemplo n.º 6
0
        public void TextFileWriterWithNullStream()
        {
            TextFileWriter writer = new TextFileWriter(path);

            writer.Write(null, 2);
        }