Exemple #1
0
        public void Collection_should_not_be_empty_inverted()
        {
            var converter = new CollectionNullOrEmptyConverter();
            var result    = converter.Convert(new List <string>(), null, true, null);

            result.Should().Be(false);
        }
Exemple #2
0
        public void Collection_should_be_null()
        {
            var converter = new CollectionNullOrEmptyConverter();
            var result    = converter.Convert(null, null, null, null);

            result.Should().Be(true);
        }
Exemple #3
0
        public void Collection_should_be_null_or_empty_inverted()
        {
            var converter = new CollectionNullOrEmptyConverter();
            var result    = converter.Convert(new List <string>()
            {
                "test"
            }, null, true, null);

            result.Should().Be(true);
        }