From 53fb67606973e127f84b2f361310f1ed186fb656 Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Tue, 20 Jun 2017 12:41:21 -0700 Subject: [PATCH] React to new page directive expectations. - This will be reverted once https://github.com/aspnet/Razor/issues/1448 has been completed. --- .../Infrastructure/PageDirectiveFeatureTest.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Microsoft.AspNetCore.Mvc.RazorPages.Test/Infrastructure/PageDirectiveFeatureTest.cs b/test/Microsoft.AspNetCore.Mvc.RazorPages.Test/Infrastructure/PageDirectiveFeatureTest.cs index 18d8b8c8f0..164e214633 100644 --- a/test/Microsoft.AspNetCore.Mvc.RazorPages.Test/Infrastructure/PageDirectiveFeatureTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.RazorPages.Test/Infrastructure/PageDirectiveFeatureTest.cs @@ -58,7 +58,7 @@ The rest of the thing"); var projectItem = new TestRazorProjectItem($@"@page {inTemplate}"); // Act & Assert - Assert.True(PageDirectiveFeature.TryGetPageDirective(projectItem, out template)); + Assert.False(PageDirectiveFeature.TryGetPageDirective(projectItem, out template)); Assert.Null(template); } @@ -70,7 +70,7 @@ The rest of the thing"); var projectItem = new TestRazorProjectItem(@"@page Some/Path/{value}"); // Act & Assert - Assert.True(PageDirectiveFeature.TryGetPageDirective(projectItem, out template)); + Assert.False(PageDirectiveFeature.TryGetPageDirective(projectItem, out template)); Assert.Null(template); } @@ -122,8 +122,8 @@ The rest of the thing"); a new line"); // Act & Assert - Assert.True(PageDirectiveFeature.TryGetPageDirective(projectItem, out template)); - Assert.Equal("Some/Path/{value}", template); + Assert.False(PageDirectiveFeature.TryGetPageDirective(projectItem, out template)); + Assert.Null(template); } [Fact]