Disable Cross plat tests for design time code gen tests.

This commit is contained in:
N. Taylor Mullen 2017-01-09 15:25:20 -08:00
parent 1ac38fea6b
commit ead9692ab1
1 changed files with 5 additions and 0 deletions

View File

@ -161,6 +161,11 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests
protected void AssertDesignTimeDocumentMatchBaseline(RazorCodeDocument document)
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return;
}
if (Filename == null)
{
var message = $"{nameof(AssertDesignTimeDocumentMatchBaseline)} should only be called from an integration test ({nameof(Filename)} is null).";