Esempio n. 1
0
        public void TestOpenTextReadsExistingData()
        {
            var fi = new FileInfo(longPathFilename);

            using (var streamReader = fi.OpenText())
            {
                Assert.AreEqual("test", streamReader.ReadLine());
            }
        }
Esempio n. 2
0
 public void TestOpenTextReadsExistingData()
 {
     var fi = new FileInfo(longPathFilename);
     using (var streamReader = fi.OpenText())
     {
         Assert.AreEqual("test", streamReader.ReadLine());
     }
 }