示例#1
0
        public void ShouldBeComposableWithOthersFilters()
        {
            var aFalseFilter = new FakeFalseFilter();
            var sut          = new OrFilter(new Filter[] { new OrFilter(new Filter[] { aFalseFilter }), new FakeTrueFilter() });

            Assert.True(sut.Evaluate(null));
            Assert.True(aFalseFilter.Called);
        }