Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        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));
        }