public void EscapeDisplayNameCharacters() { // /// Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\). string displayName = @"Hello,""Don't"" eat the \CAT"; Assert.Equal(0, String.Compare(AssemblyNameExtension.EscapeDisplayNameCharacters(displayName), @"Hello\,\""Don\'t\"" eat the \\CAT", StringComparison.OrdinalIgnoreCase)); }