Exemple #1
0
		public void ShouldReplaceMarkerInSourceWithParameter() {
			var templ = new Template("This is {name} a template");
			Assert.Equal("This is really a template", templ.Execute(new Dictionary<string, string> { { "name", "really" } }));
		}
Exemple #2
0
		public void ShouldReplaceIndexedMarkerInSourceWithMatchingIndexedParameter() {
			var templ = new Template("This is {left} a {right}");
			Assert.Equal("This is really a template", templ.Execute(new Dictionary<string,string> {{"left","really"},{"right","template"}}));
		}