コード例 #1
0
        public void SingletonTotalPopulationTest()
        {
            var rf    = new SingletonRecordFinder();
            var names = new[] { "Seoul", "Mexico City" };
            int tp    = rf.GetTotalPopulation(names);

            Assert.That(tp, Is.EqualTo(17500000 + 17400000));
        }
コード例 #2
0
        public void GetTotalPopulationTest()
        {
            var db = new SingletonRecordFinder();

            string[] city            = new[] { "Seoul", "Mexico City" };
            int      totalPopulation = db.GetTotalPopulation(city);

            Assert.That(totalPopulation, Is.EqualTo(17400000 + 17500000));
        }