public void OperatorDifferentTest()
        {
            var str1  = (NSString)"1";
            var str2  = (NSString)"2";
            var str3  = (NSString)"3";
            var oSet  = new NSOrderedSet <NSString> (str1, str2, str3);
            var oSet2 = new NSOrderedSet <NSString> (str3, str2, str1);

            Assert.IsTrue(oSet != oSet2, "NSOrderedSet1Test != must be true");
            Assert.IsFalse(oSet.Equals(oSet2), "NSOrderedSet1Test Equals must be false");
        }
Beispiel #2
0
        public void OperatorDifferentTest()
        {
            var str1 = "1";
            var str2 = "2";
            var str3 = "3";

            using (var oSet = new NSOrderedSet(str1, str2, str3))
                using (var oSet2 = new NSOrderedSet(str3, str2, str1)) {
                    Assert.IsTrue(oSet != oSet2, "NSOrderedSetTest != must be true");
                    Assert.IsFalse(oSet.Equals(oSet2), "NSOrderedSetTest Equals must be false");
                }
        }