コード例 #1
0
        public static void IsIntersectWith_Test44()
        {
            HashSet <ValueItem>     hashSet;
            IEnumerable <ValueItem> other;

            SetCollectionComparerTests.SetupTest2(out hashSet, out other);
            hashSet.IntersectWith(other);

            HashSetTestSupport <ValueItem> .VerifyHashSet(hashSet, new ValueItem[0], hashSet.Comparer);
        }
コード例 #2
0
        public static void IsExceptWith_Test44()
        {
            HashSet <ValueItem>     hashSet;
            IEnumerable <ValueItem> other;
            ValueItem item1 = new ValueItem(34, -5);
            ValueItem item2 = new ValueItem(4, 4);
            ValueItem item3 = new ValueItem(9999, -20);

            SetCollectionComparerTests.SetupTest2(out hashSet, out other);
            hashSet.ExceptWith(other);

            HashSetTestSupport <ValueItem> .VerifyHashSet(hashSet, new ValueItem[] { item1, item2, item3 }, hashSet.Comparer);
        }