Move AngularIntegrationTests

They all say they belong to Web but their implementations are in Core/Infrastructure/Backoffice, so I assume they belong in the new test suite
This commit is contained in:
Mole
2020-10-06 13:11:44 +02:00
parent da5f9e7520
commit 65bd5ea3ef
4 changed files with 0 additions and 5 deletions

View File

@@ -0,0 +1,32 @@
using System.Collections.Generic;
using NUnit.Framework;
using Umbraco.Core;
using Umbraco.Web.WebAssets;
namespace Umbraco.Tests.Web.AngularIntegration
{
[TestFixture]
public class ServerVariablesParserTests
{
[Test]
public void Parse()
{
var d = new Dictionary<string, object>();
d.Add("test1", "Test 1");
d.Add("test2", "Test 2");
d.Add("test3", "Test 3");
d.Add("test4", "Test 4");
d.Add("test5", "Test 5");
var output = ServerVariablesParser.Parse(d).StripWhitespace();
Assert.IsTrue(output.Contains(@"Umbraco.Sys.ServerVariables = {
""test1"": ""Test 1"",
""test2"": ""Test 2"",
""test3"": ""Test 3"",
""test4"": ""Test 4"",
""test5"": ""Test 5""
} ;".StripWhitespace()));
}
}
}