Exemplo n.º 1
0
        public void givenStateCodeCsvFile_whenSorted_ShouldRetrunSortedList()
        {
            CensusAnalyzerImpli   censusAnalyzerImpli      = new CensusAnalyzerImpli();
            List <IndiaStateCode> sortedIndiaStateCodelist = censusAnalyzerImpli.sortByStateCode(IndiaStateCodeCensusFilePath);

            Assert.AreEqual("AD", sortedIndiaStateCodelist[0].StateCode);
        }
Exemplo n.º 2
0
        public void givenIndiaStateCodecsvFile_ifHasCorrectNumberOFRecord_ShouldReturnTrue()
        {
            CensusAnalyzerImpli   censusAnalyzer = new CensusAnalyzerImpli();
            List <IndiaStateCode> list           = censusAnalyzer.loadingStateCensusCSV(IndiaStateCodeCensusFilePath);
            int count = list.Count;

            Assert.AreEqual(37, count);
        }