public async Task TransformAsync_should_return_original_content_when_script_failed() { var content = new NamedContentData(); var context = new ScriptContext { Data = content }; const string script = @" x => x "; var result = await sut.TransformAsync(context, script); Assert.Empty(result); }
public async Task TransformAsync_should_return_original_content_if_script_failed() { var content = new ContentData(); var vars = new ScriptVars { ["data"] = content }; const string script = @" x => x "; var result = await sut.TransformAsync(vars, script, contentOptions); Assert.Empty(result); }