public static void Normalize(string utf16Source, string utf16Expected, NormalizationForm normalizationForm) { Utf8String utf8Source = u8(utf16Source); // Quick IsNormalized tests Assert.Equal(utf16Source == utf16Expected, utf8Source.IsNormalized(normalizationForm)); // Normalize and return new Utf8String instances Utf8String utf8Normalized = utf8Source.Normalize(normalizationForm); Assert.True(Utf8String.AreEquivalent(utf8Normalized, utf16Expected)); }