Example #1
0
        public void TestSymmetricExceptWith_UnicodeSet()
        {
            string setOperation = "symmetric except with (xOr)", methodName = nameof(UnicodeSet.SymmetricExceptWith);

            // Test empty set
            assertEquals($"{methodName}: {nameof(aThruFSet)} {setOperation} {nameof(emptySet)} is wrong", aThruFSet, aThruFSet.SymmetricExceptWith(emptySet));
            assertEquals($"{methodName}: {nameof(emptySet)} {setOperation} {nameof(aThruFSet)} is wrong", aThruFSet, emptySet.SymmetricExceptWith(aThruFSet));

            assertEquals($"{methodName}: {nameof(aThruFSet)} {setOperation} {nameof(dThruMSet)} is wrong", new UnicodeSet("[A-CG-M]"), aThruFSet.SymmetricExceptWith(dThruMSet));
            assertEquals($"{methodName}: {nameof(thaiWordSet)} {setOperation} {nameof(thaiWordSuperset)} is wrong", new UnicodeSet("[A]"), thaiWordSet.SymmetricExceptWith(thaiWordSuperset));
        }