Beispiel #1
0
 public void CsvDataReaderGetChars()
 {
     using (var test = new CsvFileReader(m_ValidSetting))
     {
         test.Open(false, CancellationToken.None);
         Assert.IsTrue(test.Read());
         char[] buffer = { '0', '0', '0', '0' };
         test.GetChars(1, 0, buffer, 0, 4);
         Assert.AreEqual('G', buffer[0], "G");
         Assert.AreEqual('e', buffer[1], "E");
         Assert.AreEqual('r', buffer[2], "R");
         Assert.AreEqual('m', buffer[3], "M");
     }
 }