Ejemplo n.º 1
0
        public void IsEmpty_CollectionIsEmpty_ReturnsTrue()
        {
            IEnumerable <string> collection = new List <string>();

            bool actual = EnumerableExt.IsEmpty(collection);

            Assert.IsTrue(actual);
        }
Ejemplo n.º 2
0
        public void IsEmpty_CollectionIsNotEmpty_ReturnsFalse()
        {
            IEnumerable <string> collection = new List <string> {
                "test"
            };

            bool actual = EnumerableExt.IsEmpty(collection);

            Assert.IsFalse(actual);
        }