Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }