public CustomGenerator(string templatePath) { Debug.Assert(!string.IsNullOrEmpty(templatePath), "templatePath is null or empty."); _templatePath = templatePath; _host = new TextTemplatingHost(); }
public void SetFileExtension_is_noop_when_no_callback() { var host = new TextTemplatingHost(); host.SetFileExtension(".out"); }
public void LogErrors_is_noop_when_no_callback() { var host = new TextTemplatingHost(); host.LogErrors(Mock.Of <CompilerErrorCollection>()); }
public void SetOutputEncoding_is_noop_when_no_callback() { var host = new TextTemplatingHost(); host.SetOutputEncoding(Encoding.ASCII, true); }
public void LogErrors_is_noop_when_no_callback() { var host = new TextTemplatingHost(); host.LogErrors(Mock.Of<CompilerErrorCollection>()); }