public void CsvDataReaderGetInt64() { using (var test = new CsvFileReader(m_ValidSetting)) { test.Open(false, CancellationToken.None); Assert.IsTrue(test.Read()); Assert.AreEqual(1, test.GetInt64(0)); } }
public void CsvDataReaderGetInt64Error() { var Exception = false; try { using (var test = new CsvFileReader(m_ValidSetting)) { test.Open(false, CancellationToken.None); Assert.IsTrue(test.Read()); Assert.AreEqual(1, test.GetInt64(1)); } } catch (FormatException) { Exception = true; } catch (Exception) { Assert.Fail("Wrong Exception Type"); } Assert.IsTrue(Exception, "No Exception thrown"); }