React to new page directive expectations.

- This will be reverted once https://github.com/aspnet/Razor/issues/1448 has been completed.
This commit is contained in:
N. Taylor Mullen 2017-06-20 12:41:21 -07:00
parent c89f0a1e43
commit 53fb676069
1 changed files with 4 additions and 4 deletions

View File

@ -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]