public RollingContextTest Update(string source, string fileName = DefaultFileName) { source = SourceHelper.CleanSource(source); if (!Validator.UpdateMarkdownFile(fileName, source)) { Validator.AddMarkdownFile(fileName, source); } return(this); }
public RollingContextTest AddMarkdownFile(string source, string fileName = DefaultFileName, bool assertReturn = true) { source = SourceHelper.CleanSource(source); Xunit.Assert.Equal(assertReturn, Validator.AddMarkdownFile(fileName, source)); return(this); }