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