public void UseCase9_CheckUSStateCensusData_LessPopulusState_WhenAnalyse_ItShouldReturnCorrect() { var json = StateCensusAnalyser.StateCensusSortByIntegerValue(2, @"C:\Users\Bridge Labz\source\repos\CensusAnalyserLibrary\USCensus.csv"); JArray experiencesArrary = JArray.Parse(json); var actual = experiencesArrary[experiencesArrary.Count - 1]["State"].ToString(); var Expected = "Wyoming"; Assert.AreEqual(actual, Expected); }
public void UseCase6_CheckStateCensusData_MostDensityPerSqKmState_WhenAnalyse_ItShouldReturnCorrect() { var json = StateCensusAnalyser.StateCensusSortByIntegerValue(DensityPerSqKm, @"C:\Users\Bridge Labz\source\repos\CensusAnalyserLibrary\StateCensusData.CSV"); JArray experiencesArrary = JArray.Parse(json); var actual = experiencesArrary[0]["State"].ToString(); var Expected = "Bihar"; Assert.AreEqual(actual, Expected); }
public void UseCase7_CheckStateCensusData_SmallestStateByArea_WhenAnalyse_ItShouldReturnCorrect() { var json = StateCensusAnalyser.StateCensusSortByIntegerValue(AreaInSqKm, @"C:\Users\Bridge Labz\source\repos\CensusAnalyserLibrary\StateCensusData.CSV"); JArray experiencesArrary = JArray.Parse(json); var actual = experiencesArrary[experiencesArrary.Count - 1]["State"].ToString(); var Expected = "Arunachal Pradesh"; Assert.AreEqual(actual, Expected); }
public void UseCase5_CheckStateCensusData_LesspopulationState_WhenAnalyse_ItShouldReturnCorrect() { var json = StateCensusAnalyser.StateCensusSortByIntegerValue(Population, @"C:\Users\Bridge Labz\source\repos\CensusAnalyserLibrary\StateCensusData.CSV"); JArray experiencesArrary = JArray.Parse(json); var actual = experiencesArrary[experiencesArrary.Count - 1]["State"].ToString(); var Expected = "Sikkim"; Assert.AreEqual(actual, Expected); }