Exemplo n.º 1
0
        public void Giventhe_US_StateCensusCSVFileincorrectReturnscustomException()
        {
            US_CensusDataDAO US_states = new US_CensusDataDAO();
            string           filepath  = @"C:\Users\The Daddy\source\repos\IndianStatesCensus\IndianStatesCensus\USCensusData.txt";

            Assert.AreEqual("There is No Such Files", US_states.StateCensusAnalyzer(filepath));
        }
Exemplo n.º 2
0
        public void Giventhe_US_StateCensusCSV_FilewhenCorrectbutcsvheaderincorrectReturnsCustomException()
        {
            US_CensusDataDAO US_states = new US_CensusDataDAO();
            string           filepath  = @"C:\Users\The Daddy\source\repos\IndianStatesCensus\IndianStatesCensus\USCensusData.csv";

            Assert.AreEqual("File Contains Invalid Headers", US_states.StateCensusAnalyzer(filepath));
        }
Exemplo n.º 3
0
        public void Giventhe_US_StatesCodeWhenAnalyseShouldRecordNumberOfRecordmatches()
        {
            US_CensusDataDAO US_states = new US_CensusDataDAO();
            string           filepath  = @"C:\Users\The Daddy\source\repos\IndianStatesCensus\IndianStatesCensus\USCensusData.csv";

            Assert.AreEqual("52", US_states.StateCensusAnalyzer(filepath));
        }