Skip to content

Commit f8c3f02

Browse files
authored
[2.1. test only] Remove checks for Microsoft.VisualStudio.Web.CodeGeneration.Design in templates (#7983)
- see aspnet/AspNetCore-Internal#1759
1 parent 5661c41 commit f8c3f02

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Templating/test/Templates.Test/MvcTemplateTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
1+
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using Microsoft.AspNetCore.Testing.xunit;
@@ -112,7 +112,7 @@ private void MvcTemplate_IndividualAuthImpl(string targetFrameworkOverride, bool
112112
{
113113
Assert.Contains(".db", projectFileContents);
114114
}
115-
Assert.Contains("Microsoft.VisualStudio.Web.CodeGeneration.Design", projectFileContents);
115+
Assert.DoesNotContain("Microsoft.VisualStudio.Web.CodeGeneration.Design", projectFileContents);
116116

117117
if (targetFrameworkOverride != null)
118118
{

src/Templating/test/Templates.Test/RazorPagesTemplateTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
1+
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using Microsoft.AspNetCore.Testing.xunit;
@@ -92,7 +92,7 @@ private void RazorPagesTemplate_IndividualAuthImpl(string targetFrameworkOverrid
9292
{
9393
Assert.Contains(".db", projectFileContents);
9494
}
95-
Assert.Contains("Microsoft.VisualStudio.Web.CodeGeneration.Design", projectFileContents);
95+
Assert.DoesNotContain("Microsoft.VisualStudio.Web.CodeGeneration.Design", projectFileContents);
9696

9797
if (targetFrameworkOverride != null)
9898
{

0 commit comments

Comments
 (0)