public void Given_the_StateCode_CSV_File_incorrect_Returns_custom_Exception() { StateCodeDAO matches = new StateCodeDAO(); string filepath = @"C:\Users\The Daddy\source\repos\IndianStatesCensus\IndianStatesCensus\StateCode.txt"; Assert.AreEqual("There is No Such Files", matches.CSVStatesCode(filepath)); }
public void GiventheStateCodeCSVFile_correct_but_type_incorrect_Returns_custom_Exception() { StateCodeDAO matches = new StateCodeDAO(); string filepath = @"C:\Users\The Daddy\source\repos\IndianStatesCensus\IndianStatesCensus\StateCode.csv"; Assert.AreEqual("File Contains Invalid Records", matches.CSVStatesCode(filepath)); }
public void GiventheStatesCodeWhenAnalyseShouldRecordNumberOfRecordmatches() { StateCodeDAO matches = new StateCodeDAO(); string filepath = @"C:\Users\The Daddy\source\repos\IndianStatesCensus\IndianStatesCensus\StateCode.csv"; Assert.AreEqual("38", matches.CSVStatesCode(filepath)); }