private static IReadOnlyDictionary <string, IValueForm> SetupFormLookup() { Dictionary <string, IValueForm> lookup = new Dictionary <string, IValueForm>(StringComparer.OrdinalIgnoreCase); IValueForm x = new ReplacementValueFormModel(); lookup[x.Identifier] = x; x = new ChainValueFormModel(); lookup[x.Identifier] = x; x = new XmlEncodeValueFormModel(); lookup[x.Identifier] = x; x = new IdentityValueForm(); lookup[x.Identifier] = x; x = new DefaultSafeNamespaceValueFormModel(); lookup[x.Identifier] = x; x = new DefaultLowerSafeNameValueFormModel(); lookup[x.Identifier] = x; x = new DefaultSafeNamespaceValueFormModel(); lookup[x.Identifier] = x; x = new DefaultLowerSafeNamespaceValueFormModel(); lookup[x.Identifier] = x; x = new LowerCaseValueFormModel(); lookup[x.Identifier] = x; x = new LowerCaseInvariantValueFormModel(); lookup[x.Identifier] = x; x = new UpperCaseValueFormModel(); lookup[x.Identifier] = x; x = new UpperCaseInvariantValueFormModel(); lookup[x.Identifier] = x; return(lookup); }
public void SafeNamespaceWorksAsExpected(string input, string expected) { var model = new DefaultSafeNamespaceValueFormModel(); string actual = model.Process(null, input); Assert.Equal(expected, actual); }