internal static void AssertIsValidSupplementaryPlaneScalar(uint scalarValue) { if (!UnicodeUtility.IsValidUnicodeScalar(scalarValue) || UnicodeUtility.IsBmpCodePoint(scalarValue)) { Debug.Fail($"The value {ToHexString(scalarValue)} is not a valid supplementary plane Unicode scalar value."); } }
internal static void AssertIsBmpCodePoint(uint codePoint) { if (!UnicodeUtility.IsBmpCodePoint(codePoint)) { Debug.Fail($"The value {ToHexString(codePoint)} is not a valid BMP code point."); } }