private static AppSettingsBase GetAppSettings(ParsingStrategyDelegate parsingStrategy=null) { return new DictionarySettings(new Dictionary<string, string> { {"NullableKey", null}, {"EmptyKey", string.Empty}, {"RealKey", "This is a real value"}, {"ListKey", "A,B,C,D,E"}, {"IntKey", "42"}, {"BadIntegerKey", "This is not an integer"}, {"DictionaryKey", "A:1,B:2,C:3,D:4,E:5"}, {"BadDictionaryKey", "A1,B:"}, {"ObjectNoLineFeed", "{SomeSetting:Test,SomeOtherSetting:12,FinalSetting:Final}"}, {"ObjectWithLineFeed", "{SomeSetting:Test,\r\nSomeOtherSetting:12,\r\nFinalSetting:Final}"}, }) { ParsingStrategy = parsingStrategy }; }
private static AppSettingsBase GetAppSettings(ParsingStrategyDelegate parsingStrategy = null) { return(new DictionarySettings(new Dictionary <string, string> { { "NullableKey", null }, { "EmptyKey", string.Empty }, { "RealKey", "This is a real value" }, { "ListKey", "A,B,C,D,E" }, { "IntKey", "42" }, { "BadIntegerKey", "This is not an integer" }, { "DictionaryKey", "A:1,B:2,C:3,D:4,E:5" }, { "BadDictionaryKey", "A1,B:" }, { "ObjectNoLineFeed", "{SomeSetting:Test,SomeOtherSetting:12,FinalSetting:Final}" }, { "ObjectWithLineFeed", "{SomeSetting:Test,\r\nSomeOtherSetting:12,\r\nFinalSetting:Final}" }, }) { ParsingStrategy = parsingStrategy }); }