public async Task Execute_ReturnsAppRelativePath_WhenItStartsWithTilde( string appRoot, string contentPath, string expectedPath) { var action = new Func <RedirectResult, ActionContext, Task>(async(result, context) => await result.ExecuteResultAsync(context)); await BaseRedirectResultTest.Execute_ReturnsAppRelativePath_WhenItStartsWithTilde( appRoot, contentPath, expectedPath, action); }
public async Task Execute_ReturnsContentPath_WhenItDoesNotStartWithTilde( string appRoot, string contentPath, string expectedPath) { var action = new Func <RedirectResult, HttpContext, Task>(async(result, context) => await((IResult)result).ExecuteAsync(context)); await BaseRedirectResultTest.Execute_ReturnsContentPath_WhenItDoesNotStartWithTilde( appRoot, contentPath, expectedPath, action); }