Ejemplo n.º 1
0
        public virtual void TestOverlapsObject()
        {
            var          originalValues = new string[] { "sally", "sells", "seashells", "by", "the", "sea", "shore" };
            CharArraySet target         = new CharArraySet(TEST_VERSION_CURRENT, originalValues, false);
            var          nonOverlapping = new List <object> {
                "peter", "piper", "picks", "a", "pack", "of", "pickled", "peppers"
            };
            var overlapping = new List <object> {
                "introducing", "sally", "sells", "seashells", "by", "the", "sea", "shore", "and", "more"
            };

            assertFalse(target.Overlaps(nonOverlapping));
            assertTrue(target.Overlaps(overlapping));
            assertTrue(target.Overlaps(originalValues));
        }