C# Class System.Globalization.Tests.StringNormalizationAllTests

Show file Open project: dotnet/corefx

Private Methods

Method Description
AssertEqualsForm ( string c, string cForm ) : void
ConvertToString ( string codepoints ) : string
DumpStringAsCodepoints ( string s ) : string
Normalize ( ) : void
VerifyConformanceInvariant ( NormalizationForm normForm, string c1, string c2, string c3, string c4, string c5 ) : void

Verifies the first normalization conformance invariant for the specified normalization form, where the rule as defined for all Unicode normalization forms is as follows: 1. The following invariants must be true for all conformant implementations: NFC c2 == NFC(c1) == NFC(c2) == NFC(c3) c4 == NFC(c4) == NFC(c5) NFD c3 == NFD(c1) == NFD(c2) == NFD(c3) c5 == NFD(c4) == NFD(c5) NFKC c4 == NFKC(c1) == NFKC(c2) == NFKC(c3) == NFKC(c4) == NFKC(c5) NFKD c5 == NFKD(c1) == NFKD(c2) == NFKD(c3) == NFKD(c4) == NFKD(c5)