Exemple #1
0
        public virtual void TestIsSupersetOfObject()
        {
            var          originalValues = new string[] { "sally", "sells", "seashells", "by", "the", "sea", "shore" };
            CharArraySet target         = new CharArraySet(TEST_VERSION_CURRENT, originalValues, false);
            var          subset         = new List <object> {
                "seashells", "sea", "shore"
            };
            var superset = new List <object> {
                "introducing", "sally", "sells", "seashells", "by", "the", "sea", "shore", "and", "more"
            };

            assertTrue(target.IsSupersetOf(subset));
            assertFalse(target.IsSupersetOf(superset));
            assertTrue(target.IsSupersetOf(originalValues));
        }