public void FileUrl_PathWithQueryString_ResolvesUrlWithCombinedQueryStringCorrectly(string path, bool contentDisposition, string expectedUrl) { var urlOptions = new FileUrlOptions { AttachmentContentDisposition = contentDisposition }; string url = mUrlHelper.Kentico().FileUrl(path, urlOptions); Assert.That(url, Is.EqualTo(expectedUrl)); }
public void FileUrl_WithUrlOptions_ResolvesUrlCorrectly(bool contentDisposition, string expectedUrl) { var urlOptions = new FileUrlOptions { AttachmentContentDisposition = contentDisposition }; string url = mUrlHelper.Kentico().FileUrl(FILE_PATH, urlOptions); Assert.That(url, Is.EqualTo(expectedUrl)); }