ByValue.CollectionByValueAssert.AreEqual C# (CSharp) Method

AreEqual() public static method

public static AreEqual ( ICollectionByValue first, ICollectionByValue second ) : void
first ICollectionByValue
second ICollectionByValue
return void
        public static void AreEqual(ICollectionByValue first, ICollectionByValue second)
        {
            Assert.AreEqual(first, second);
            Assert.AreEqual(second, first);
            Assert.AreEqual(first.GetHashCode(), second.GetHashCode());
        }

Usage Example

Example #1
0
        public void WithNotStrictOrdering_OfShuffledCollections_ShouldBeEqual()
        {
            var firstCollection  = new[] { "1", "2" };
            var secondCollection = new[] { "2", "1" };
            var firstByValue     = new CollectionByValue <string>(firstCollection, NotStrictOptions);
            var secondByValue    = new CollectionByValue <string>(secondCollection, NotStrictOptions);

            CollectionByValueAssert.AreEqual(firstByValue, secondByValue);
        }
All Usage Examples Of ByValue.CollectionByValueAssert::AreEqual
CollectionByValueAssert