コード例 #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);
     }
 }
コード例 #2
0
 public void givenIndiaStateCodeCSVFile_withoutHeader_ShouldThrowWxception()
 {
     try
     {
         CSVHeaderCheck cSVHeaderCheck = new CSVHeaderCheck();
         cSVHeaderCheck.loadFile(IndiaStateCodeWithDelimiter);
     }
     catch (CustomException customException)
     {
         Assert.AreEqual(CustomException.ExceptionType.Invalid_Header, customException.type);
     }
 }