public void ShouldContainEmbeddedResourceContent(string content) { var response = string.Empty; var message = string.Empty; try { // ReSharper disable once ConvertToUsingDeclaration using (var client = new RedirectableHttpClient()) { response = client.DownloadString(_app.BaseUrl + "/" + content); } } catch (Exception ex) { message = ex.Message; } Assert.True(response != null, message); }
public void IndexShouldContainUserScriptsRef() { var response = string.Empty; try { // ReSharper disable once ConvertToUsingDeclaration using (var client = new RedirectableHttpClient()) { response = client.DownloadString(_app.BaseUrl); } } catch (Exception ex) { _logger.LogError(ex, nameof(IndexShouldContainUserScriptsRef)); } Assert.NotNull(response); Assert.Contains("'scripts/userscripts.js'", response); }