diff --git a/build/dependencies.props b/build/dependencies.props
index 4ce45e6..417ed42 100644
--- a/build/dependencies.props
+++ b/build/dependencies.props
@@ -3,6 +3,7 @@
$(MSBuildAllProjects);$(MSBuildThisFileFullPath)
+ 0.9.9
2.1.0
2.1.1-rtm-15790
2.1.0
diff --git a/test/Templates.Test/CdnScriptTagTests.cs b/test/Templates.Test/CdnScriptTagTests.cs
index 63e18a2..8351c97 100644
--- a/test/Templates.Test/CdnScriptTagTests.cs
+++ b/test/Templates.Test/CdnScriptTagTests.cs
@@ -1,107 +1,171 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
+using AngleSharp.Dom.Html;
+using AngleSharp.Parser.Html;
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
+using System.Linq;
using System.Net.Http;
using System.Security.Cryptography;
-using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace Templates.Test
{
- public class CdnScriptTagTests
+ public class CdnScriptTagTests : IDisposable
{
private readonly ITestOutputHelper _output;
+ private readonly HttpClient _httpClient;
+ private static readonly string _solutionDir;
+ private static readonly string _artifactsDir;
+ private static List _scriptTags;
+
+ static CdnScriptTagTests()
+ {
+ _solutionDir = GetSolutionDir();
+ _artifactsDir = Path.Combine(_solutionDir, "artifacts", "build");
+ var packages = Directory.GetFiles(_artifactsDir, "*.nupkg");
+
+ _scriptTags = new List();
+ foreach (var packagePath in packages)
+ {
+ _scriptTags.AddRange(GetScriptTags(packagePath));
+ }
+ }
public CdnScriptTagTests(ITestOutputHelper output)
{
_output = output;
+ _httpClient = new HttpClient();
}
- [Fact]
- public async Task CheckSubresourceIntegrity()
+ public static IEnumerable