NUnit.Framework.CollectionAssert.AllItemsAreNotNull C# (CSharp) Méthode

AllItemsAreNotNull() public static méthode

Asserts that all items contained in collection are not equal to null.
public static AllItemsAreNotNull ( IEnumerable collection ) : void
collection IEnumerable IEnumerable containing objects to be considered
Résultat void
        public static void AllItemsAreNotNull (IEnumerable collection) 
        {
            AllItemsAreNotNull(collection, string.Empty, null);
        }

Same methods

CollectionAssert::AllItemsAreNotNull ( IEnumerable collection, string message ) : void

Usage Example

Exemple #1
0
        public void GivenStatementAndWordDictionaryCheckStatementWordSplit(bool removePunctuation, string[] wordDictionary)
        {
            var res = "Hello, I am Slava!".ToWordArray(removePunctuation);

            CollectionAssert.AllItemsAreInstancesOfType(res, typeof(string));
            CollectionAssert.AllItemsAreNotNull(res);
            CollectionAssert.AreEquivalent(res, wordDictionary);
        }
All Usage Examples Of NUnit.Framework.CollectionAssert::AllItemsAreNotNull