Example #1
0
        public void TestOverlaps_UnicodeSet()
        {
            string setOperation = "overlap", methodName = nameof(UnicodeSet.Overlaps);

            // Test empty set
            assertFalse($"{methodName}: {nameof(thaiWordSet)} does {setOperation} with {nameof(emptySet)}", thaiWordSet.Overlaps(emptySet));
            assertFalse($"{methodName}: {nameof(emptySet)} does {setOperation} with {nameof(emptySet)}", emptySet.Overlaps(emptySet));
            assertFalse($"{methodName}: {nameof(emptySet)} does {setOperation} with {nameof(thaiWordSet)}", emptySet.Overlaps(thaiWordSet));

            assertTrue($"{methodName}: {nameof(thaiWordSet)} does not {setOperation} with {nameof(thaiWordSuperset)}", thaiWordSet.Overlaps(thaiWordSuperset));
            assertTrue($"{methodName}: {nameof(thaiWordSet)} does not {setOperation} with {nameof(thaiWordSubset)}", thaiWordSet.Overlaps(thaiWordSubset));
            assertTrue($"{methodName}: {nameof(thaiWordSet)} does not {setOperation} with {nameof(thaiWordSet2)}", thaiWordSet.Overlaps(thaiWordSet2));
            assertFalse($"{methodName}: {nameof(thaiWordSet)} does {setOperation} with {nameof(burmeseWordSet)}", thaiWordSet.Overlaps(burmeseWordSet));
        }