public void Parse_ValidTemplate_Success() { string template = "Hello {{ p.Firstname }} {{ p.Lastname }}"; LiquidTemplate target = new LiquidTemplate(); target.Parse(template); Assert.AreEqual(template, target.Template); }
public void Parse_EmptyTemplate_Success() { string template = string.Empty; LiquidTemplate target = new LiquidTemplate(); target.Parse(template); Assert.AreEqual(template, target.Template); }
public void Parse_NullTemplate_Throws() { string template = null; try { LiquidTemplate target = new LiquidTemplate(); target.Parse(template); } catch (ArgumentNullException ex) { Assert.AreEqual("template", ex.ParamName); throw; } }