public void CsvTable_GetHeader_ByIndex_Success() { var table = new CsvTable(); string headerName = "test"; table.AddHeader(headerName); CsvHeader returnedHeader = table.GetHeader(0); Assert.Equal(headerName, returnedHeader.Name); Assert.Equal(0, returnedHeader.Index); }
public void CsvTable_GetHeader_ByIndex_IndexOutOfRange() { var table = new CsvTable(); Assert.Throws <IndexOutOfRangeException>(() => table.GetHeader(0)); }