From f8c3f02345045c42a49ada0dc9f5f06d0dd8dc92 Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Tue, 26 Feb 2019 16:50:35 -0800 Subject: [PATCH] [2.1. test only] Remove checks for Microsoft.VisualStudio.Web.CodeGeneration.Design in templates (#7983) - see aspnet/AspNetCore-Internal#1759 --- src/Templating/test/Templates.Test/MvcTemplateTest.cs | 4 ++-- src/Templating/test/Templates.Test/RazorPagesTemplateTest.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Templating/test/Templates.Test/MvcTemplateTest.cs b/src/Templating/test/Templates.Test/MvcTemplateTest.cs index e8bb66ed4b..07a6e9f683 100644 --- a/src/Templating/test/Templates.Test/MvcTemplateTest.cs +++ b/src/Templating/test/Templates.Test/MvcTemplateTest.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// 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 Microsoft.AspNetCore.Testing.xunit; @@ -112,7 +112,7 @@ namespace Templates.Test { Assert.Contains(".db", projectFileContents); } - Assert.Contains("Microsoft.VisualStudio.Web.CodeGeneration.Design", projectFileContents); + Assert.DoesNotContain("Microsoft.VisualStudio.Web.CodeGeneration.Design", projectFileContents); if (targetFrameworkOverride != null) { diff --git a/src/Templating/test/Templates.Test/RazorPagesTemplateTest.cs b/src/Templating/test/Templates.Test/RazorPagesTemplateTest.cs index 314f72cb1d..639efb9dc8 100644 --- a/src/Templating/test/Templates.Test/RazorPagesTemplateTest.cs +++ b/src/Templating/test/Templates.Test/RazorPagesTemplateTest.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// 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 Microsoft.AspNetCore.Testing.xunit; @@ -92,7 +92,7 @@ namespace Templates.Test { Assert.Contains(".db", projectFileContents); } - Assert.Contains("Microsoft.VisualStudio.Web.CodeGeneration.Design", projectFileContents); + Assert.DoesNotContain("Microsoft.VisualStudio.Web.CodeGeneration.Design", projectFileContents); if (targetFrameworkOverride != null) {