예제 #1
0
        public void AttributeIsInvalidWhenCollectionIsNullTest()
        {
            // arrange
            var attribute = new MaximumSize(2);

            // act
            var actual = attribute.IsValid(null);

            // assert
            Assert.False(actual);
        }
예제 #2
0
        public void AttributeIsInvalidTest()
        {
            // arrange
            var list = new List <string> {
                "test", "test", "test"
            };
            var attribute = new MaximumSize(2);

            // act
            var actual = attribute.IsValid(list);

            // assert
            Assert.False(actual);
        }