Esempio n. 1
0
        public virtual void TestIsSubsetOfObject()
        {
            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"
            };

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