コード例 #1
0
        public void ConfigurablePopulationTest()
        {
            var rf    = new ConfigurableRecordFinder(new DummyDatabase());
            var names = new[] { "alpha", "gamma" };
            int tp    = rf.GetTotalPopulation(names);

            Assert.That(tp, Is.EqualTo(4));
        }
コード例 #2
0
        public void DependantTotalPopulationTest()
        {
            var db = new DummyDatabase();

            var rf = new ConfigurableRecordFinder(db);

            Assert.That(
                rf.GetTotalPopulation(new[] { "alpha", "gamma" }),
                Is.EqualTo(4));
        }