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