/// <summary> /// Transforms a template file /// </summary> private void TransformTemplateFile(string sourcePath, string targetPath) { using var _ = _logger.Indent(LogEventLevel.Debug, "Transforming content file {source}", sourcePath); var content = _fileSystemAdapter.ReadFile(sourcePath); _fileSystemAdapter.WriteFile(targetPath, _contentResolver.ReplaceSymbols(content)); }
public void ReplaceSymbols_Returns_Expected_Values(string content, string expected) { _subject.ReplaceSymbols(content).ShouldBe(expected); }