static TypedMarkupParser() {
			defaultImplementers = new Dictionary<string, ITypedMarkupParserImpl>();
			defaultImplementers["str"]  = new StringMarkupParser();
			defaultImplementers["int"]  = new IntMarkupParser();
			defaultImplementers["pos"]  = new PositionMarkupParser();
			defaultImplementers["bool"] = new BoolMarkupParser();
			defaultImplementers["code"] = new CodeMarkupParser();
		}
Пример #2
0
		public void TestParse_Works() {
			var actual = new CodeMarkupParser().Parse("code", false, " some code ", null);
			Assert.AreEqual(" some code ", actual.InitializerString);
			Globals.AssertThrows(() => actual.ValueRetriever(), (TemplateErrorException ex) => true);
		}