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

AreEqual() public static méthode

Asserts that expected and actual are exactly equal. The collections must have the same count, and contain the exact same objects in the same order.
public static AreEqual ( IEnumerable expected, IEnumerable actual ) : void
expected IEnumerable The first IEnumerable of objects to be considered
actual IEnumerable The second IEnumerable of objects to be considered
Résultat void
        public static void AreEqual (IEnumerable expected, IEnumerable actual) 
        {
            AreEqual(expected, actual, string.Empty, null);
        }

Same methods

CollectionAssert::AreEqual ( IEnumerable expected, IEnumerable actual, IComparer comparer ) : void
CollectionAssert::AreEqual ( IEnumerable expected, IEnumerable actual, IComparer comparer, string message ) : void
CollectionAssert::AreEqual ( IEnumerable expected, IEnumerable actual, string message ) : void

Usage Example

Exemple #1
0
        public void CookieDictionaryToHeaderNull()
        {
            // null cookie dictionary
            var expectedCookieHeader = "";

            CollectionAssert.AreEqual(expectedCookieHeader, CookieUtil.CookieDictionaryToHeader(null));
        }
All Usage Examples Of NUnit.Framework.CollectionAssert::AreEqual