public void CanReplaceSimpleValueUsingExpressions() { var t = new SimpleTemplate("asd${asd}asd$qwe"); t.SetMany(asd => 123, qwe => 456); t.ToString().Should().Be("asd123asd456"); }
public void CanReplaceSimpleValueUsingAnonymousObject() { var t = new SimpleTemplate("asd${asd}asd$qwe"); t.SetMany(new { asd = 123, qwe = 456 }); t.ToString().Should().Be("asd123asd456"); }