ByValue.CollectionByValueAssert.AreNotEqual C# (CSharp) Method

AreNotEqual() public static method

public static AreNotEqual ( ICollectionByValue first, ICollectionByValue second ) : void
first ICollectionByValue
second ICollectionByValue
return void
        public static void AreNotEqual(ICollectionByValue first, ICollectionByValue second)
        {
            Assert.AreNotEqual(first, second);
            Assert.AreNotEqual(second, first);

            // hash code may be same for different object
        }
    }

Usage Example

Example #1
0
        public void OfCollectionsOfDifferentTypes_ShouldNotBeEqual()
        {
            var firstCollection  = new byte[] { 1, 2 };
            var secondCollection = new int[] { 1, 2 };
            var firstByValue     = new CollectionByValue <byte>(firstCollection, new Options <byte>(true, null));
            var secondByValue    = new CollectionByValue <int>(secondCollection, new Options <int>(true, null));

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