示例#1
0
        public void IsEnabled_False()
        {
            var filter = new DisabledIdentifiersEnumerationFilter(new[] { "ID1", "ID2" });

            Assert.That(filter.IsEnabled(_value1, _businessObjectStub, _propertyStub), Is.False);
            Assert.That(filter.IsEnabled(_value2, _businessObjectStub, _propertyStub), Is.False);
        }
示例#2
0
        public void IsEnabled_NullBusinessObject()
        {
            var filter = new DisabledIdentifiersEnumerationFilter(new string[0]);

            Assert.That(filter.IsEnabled(_value1, null, _propertyStub), Is.True);
        }