Exemplo n.º 1
0
 public void givenStateCensusAnalyser_WithoutHeader_ShouldThrowException()
 {
     try
     {
         CSVHeaderCheck csvHeaderCheck = new CSVHeaderCheck();
         csvHeaderCheck.loadFile(IndiaStateCensusWithoutHeader);
     }
     catch (CustomException customException)
     {
         Assert.AreEqual(CustomException.ExceptionType.Invalid_Header, customException.type);
     }
 }
 public void givenIndiaStateCodeCSVFile_withoutHeader_ShouldThrowWxception()
 {
     try
     {
         CSVHeaderCheck cSVHeaderCheck = new CSVHeaderCheck();
         cSVHeaderCheck.loadFile(IndiaStateCodeWithDelimiter);
     }
     catch (CustomException customException)
     {
         Assert.AreEqual(CustomException.ExceptionType.Invalid_Header, customException.type);
     }
 }