Example #1
0
        public void GivenStateCensusDataInJsonFromLargestStateToSmallest_WhenAnalyse_ReturnNumberOfStatesSorted()
        {
            StateCensusAnalyzer stateCensusAnalyzer = new StateCensusAnalyzer();
            int actual = stateCensusAnalyzer.SortingByInt(stateCensusDataPath, 2);

            Assert.AreEqual(336, actual);
        }
Example #2
0
        public void GivenStateCensusDataInJsonFromMostDensityToLeast_WhenAnalyse_ReturnNumberOfStatesSorted()
        {
            StateCensusAnalyzer stateCensusAnalyzer = new StateCensusAnalyzer();
            int actual = stateCensusAnalyzer.SortingByInt(stateCensusDataPath, 3);

            Assert.AreEqual(294, actual);
        }