Exemple #1
0
        public void UseCase4_CheckEndState_InAJsonFile_WhenAnalyse_ItShouldReturnMatched()
        {
            var    json = StateCensusAnalyser.SortStateAlphabatic(3, CorrectFilePath_Usecase2);
            JArray experiencesArrary = JArray.Parse(json);
            var    actual            = experiencesArrary[experiencesArrary.Count - 1]["StateName"].ToString();
            var    Expected          = "West Bengal";

            Assert.AreEqual(actual, Expected);
        }
Exemple #2
0
        public void UseCase3_CheckStartState_InAJsonFile_WhenAnalyse_ItShouldReturnMatched()
        {
            var    json = StateCensusAnalyser.SortStateAlphabatic(State, CorrectFilePath_Usecase1);
            JArray experiencesArrary = JArray.Parse(json);
            var    actual            = experiencesArrary[0]["State"].ToString();
            var    Expected          = "Andhra Pradesh";

            Assert.AreEqual(actual, Expected);
        }