示例#1
0
        public void Process_ShouldExecuteAllMatch()
        {
            var dep = new List <string>();

            _allMatchStrategy.Process(2, dep);
            Assert.Equal(2, dep.Count);
        }
示例#2
0
        public void Process_ShouldExecuteFirstMatch()
        {
            var dep = new List <string>();

            _firstMatchStrategy.Process(0, dep);
            Assert.Single(dep);
            Assert.Equal("zero", dep[0]);
        }