public void GetColumnIndex_ColumnNotExist_NegativeIndex() { var dataColumn = "Data Value"; var dateTimeStampColumn = "Date/Time"; var file = GetTestingFileA(); var processor = new MockingFileProcessor(dataColumn, dateTimeStampColumn); processor.SetDataAndPrepareProcessing(file); var index = processor.GetColumnIndex("Column not exists"); var expected = -1; Assert.AreEqual(index, expected); }
public void GetColumnIndex_ColumnExist_MatchResult() { var dataColumn = "Data Value"; var dateTimeStampColumn = "Date/Time"; var file = GetTestingFileA(); var processor = new MockingFileProcessor(dataColumn, dateTimeStampColumn); processor.SetDataAndPrepareProcessing(file); var index = processor.GetColumnIndex(dataColumn); var expected = 5; Assert.AreEqual(index, expected); }