Esempio n. 1
0
 public void givenWrongIndiaStateCode_InputFile_ShouldThrowWxception()
 {
     try {
         WrongFileInput wrongFileInput = new WrongFileInput();
         wrongFileInput.loadFile(IndiaCensusDataWithWrongFile);
     }
     catch (CustomException customException) {
         Assert.AreEqual(CustomException.ExceptionType.Invalid_File, customException.type);
     }
 }
 public void givenIndiaCensusAnalyserWithWrongFile_asInput_ShouldThrowException()
 {
     try {
         WrongFileInput wrongFileInput = new WrongFileInput();
         wrongFileInput.loadFile(IndiaCensusAnalyserWithWrong_File);
     }
     catch (CustomException customException) {
         Assert.AreEqual(CustomException.ExceptionType.Invalid_File, customException.type);
     }
 }