Esempio n. 1
0
        public void GivenCSVStateCodeCheckStartState_WhenAnalyze_ShouldMatch()
        {
            StateCensusAnalyzer stateCensusAnalyzer = new StateCensusAnalyzer();
            string actual = stateCensusAnalyzer.CheckForState(this.jsonStateCodePath, "First", "StateName", "StateCode");

            Assert.AreEqual("Andaman and Nicobar Islands", actual);
        }
Esempio n. 2
0
        public void GivenCSVStateCodeCheckEndState_WhenAnalyze_ShouldMatch()
        {
            StateCensusAnalyzer stateCensusAnalyzer = new StateCensusAnalyzer();
            string actual = stateCensusAnalyzer.CheckForState(this.jsonStateCodePath, "Last", "StateName", "StateCode");

            Assert.AreEqual("West Bengal", actual);
        }
Esempio n. 3
0
        public void GivenCSVStateCensusAnalyzerCheckStartState_WhenAnalyze_ShouldMatch()
        {
            StateCensusAnalyzer stateCensusAnalyzer = new StateCensusAnalyzer();
            string actual = stateCensusAnalyzer.CheckForState(this.jsonStateCensusPath, "First", "State", "StateCensusData");

            Assert.AreEqual("Andhra Pradesh", actual);
        }