Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }