Ejemplo n.º 1
0
        public void apply_substitutions()
        {
            var substitutions = new Substitutions();
            substitutions.Set("%KEY%", "the key");
            substitutions.Set("%NAME%", "George Michael");

            string text = "%KEY% is %NAME%";
            substitutions.ApplySubstitutions(text)
                         .ShouldEqual("the key is George Michael");
        }
Ejemplo n.º 2
0
 public string Contents(Substitutions substitutions)
 {
     return substitutions.ApplySubstitutions(RawText);
 }