예제 #1
0
        public void IsEmpty_CollectionIsEmpty_ReturnsTrue()
        {
            IEnumerable <string> collection = new List <string>();

            bool actual = EnumerableExt.IsEmpty(collection);

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

            bool actual = EnumerableExt.IsEmpty(collection);

            Assert.IsFalse(actual);
        }