AreNotEqual() public static method

public static AreNotEqual ( ICollectionByValue first, ICollectionByValue second ) : void
first ICollectionByValue
second ICollectionByValue
return void
コード例 #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);
        }
コード例 #2
0
        public void WithStrictOrdering_OfShuffledCollections_ShouldNotBeEqual()
        {
            var firstCollection  = new[] { "1", "2" };
            var secondCollection = new[] { "2", "1" };
            var firstByValue     = new CollectionByValue <string>(firstCollection, StrictOptions);
            var secondByValue    = new CollectionByValue <string>(secondCollection, StrictOptions);

            CollectionByValueAssert.AreNotEqual(firstByValue, secondByValue);
        }
コード例 #3
0
        public void OfNullCollectionsOfDifferentTypes_ShouldNotBeEqual()
        {
            var firstCollection  = (string[])null;
            var secondCollection = (int[])null;
            var firstByValue     = new CollectionByValue <string>(firstCollection, StrictOptions);
            var secondByValue    = new CollectionByValue <int>(secondCollection, new Options <int>(true, null));

            CollectionByValueAssert.AreNotEqual(firstByValue, secondByValue);
        }
コード例 #4
0
        public void OfEmptyCollection_ShouldNotBeEqualToOfNullCollection()
        {
            var firstCollection  = new string[] { };
            var secondCollection = (string[])null;
            var firstByValue     = new CollectionByValue <string>(firstCollection, NotStrictOptions);
            var secondByValue    = new CollectionByValue <string>(secondCollection, NotStrictOptions);

            CollectionByValueAssert.AreNotEqual(firstByValue, secondByValue);
        }
コード例 #5
0
        public void OfCollectionsWithDifferentItemsCount_ShouldNotBeEqual()
        {
            var firstCollection  = new[] { "1", "2" };
            var secondCollection = new[] { "1" };
            var firstByValue     = new CollectionByValue <string>(firstCollection, StrictOptions);
            var secondByValue    = new CollectionByValue <string>(secondCollection, StrictOptions);

            CollectionByValueAssert.AreNotEqual(firstByValue, secondByValue);
        }
コード例 #6
0
ファイル: SetByValueTests.cs プロジェクト: sm-g/ByValue
        public void OfNullSetsOfDifferentTypes_ShouldNotBeEqual()
        {
            var firstSet      = (ISet <string>)null;
            var secondSet     = (ISet <int>)null;
            var firstByValue  = new SetByValue <string>(firstSet, Options);
            var secondByValue = new SetByValue <int>(secondSet, new Options <int>(true, null));

            CollectionByValueAssert.AreNotEqual(firstByValue, secondByValue);
        }
コード例 #7
0
ファイル: SetByValueTests.cs プロジェクト: sm-g/ByValue
        public void OfEmptySet_ShouldNotBeEqualToOfNullSet()
        {
            var firstSet      = new HashSet <string> {
            };
            var secondSet     = (ISet <string>)null;
            var firstByValue  = new SetByValue <string>(firstSet, Options);
            var secondByValue = new SetByValue <string>(secondSet, Options);

            CollectionByValueAssert.AreNotEqual(firstByValue, secondByValue);
        }
コード例 #8
0
ファイル: SetByValueTests.cs プロジェクト: sm-g/ByValue
        public void OfSetsOfDifferentTypes_ShouldNotBeEqual()
        {
            var firstSet = new HashSet <byte> {
                1, 2
            };
            var secondSet = new HashSet <int> {
                1, 2
            };
            var firstByValue  = new SetByValue <byte>(firstSet, new Options <byte>(true, null));
            var secondByValue = new SetByValue <int>(secondSet, new Options <int>(true, null));

            CollectionByValueAssert.AreNotEqual(firstByValue, secondByValue);
        }
コード例 #9
0
ファイル: SetByValueTests.cs プロジェクト: sm-g/ByValue
        public void OfSetsWithDifferentItemsCount_ShouldNotBeEqual()
        {
            var firstSet = new HashSet <string> {
                "1", "2"
            };
            var secondSet = new HashSet <string> {
                "1"
            };
            var firstByValue  = new SetByValue <string>(firstSet, Options);
            var secondByValue = new SetByValue <string>(secondSet, Options);

            CollectionByValueAssert.AreNotEqual(firstByValue, secondByValue);
        }