コード例 #1
0
        public void TestProcessNoRequiredResults()
        {
            _lookupStrategies[1] = new SupportTableLookupStrategy(0);

            bool result = _exec.Process(_rep, null);

            Assert.IsFalse(result);
            Assert.AreEqual(0, _rep.LookupResultsList.Count);
        }
コード例 #2
0
        public void TestProcessPartialOptionalResults()
        {
            _lookupStrategies[3] = new SupportTableLookupStrategy(0);

            bool result = _exec.Process(_rep, null);

            Assert.IsTrue(result);
            Assert.AreEqual(3, _rep.LookupResultsList.Count);
        }
コード例 #3
0
        public void SetUp()
        {
            _lookupStrategies = new JoinExecTableLookupStrategy[4];
            for (int i = 0; i < _lookupStrategies.Length; i++)
            {
                _lookupStrategies[i] = new SupportTableLookupStrategy(1);
            }

            _exec = new LookupInstructionExec(0, "test",
                                              new[] { 1, 2, 3, 4 }, _lookupStrategies, new[] { false, true, true, false, false });

            _rep = new SupportRepositoryImpl();
        }