Exemple #1
0
        public void TestMethod12()
        {
            var value     = new string[] { };
            var attribute = new CollectionHasAtLeastOneElementAttribute();

            Assert.IsFalse(attribute.IsValid(value));
        }
Exemple #2
0
        public void TestMethod11()
        {
            var value     = new Array[3, 3];
            var attribute = new CollectionHasAtLeastOneElementAttribute();

            Assert.IsTrue(attribute.IsValid(value));
        }
Exemple #3
0
        public void TestMethod21()
        {
            var value = new Collection <string>()
            {
                "slk", ""
            };
            var attribute = new CollectionHasAtLeastOneElementAttribute();

            Assert.IsTrue(attribute.IsValid(value));
        }