public void GivenIndiaAndUSCSVDatatoSortByPopulationAndDensity_ShouldReturnMostDensityState() { CensusAnalyzer census = new CensusAnalyzer(usCensusData, usCodeHeaders); censusData = census.LoadCensusData(Country.CountryName.US); string sorted = census.SortingCSVData(censusData, "USPopulationDensity").ToString(); USCensusDao[] sortedUSResult = JsonConvert.DeserializeObject <USCensusDao[]>(sorted); CensusAnalyzer censusIndia = new CensusAnalyzer(censusFilePath, indianStateCensusHeaders); censusData = censusIndia.LoadCensusData(Country.CountryName.INDIA); string sortedData = census.SortingCSVData(censusData, "populationDensity").ToString(); IndiaCensusDAO[] sortedIndiaResult = JsonConvert.DeserializeObject <IndiaCensusDAO[]>(sortedData); string result = census.getBothSorted(sortedUSResult[0], sortedIndiaResult[0]); Assert.AreEqual("District of Columbia", result); }