diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/IntegrationTests/IntegrationTestBase.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/IntegrationTests/IntegrationTestBase.cs index 3e0aa9dcd3..8da9b93d74 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/IntegrationTests/IntegrationTestBase.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/IntegrationTests/IntegrationTestBase.cs @@ -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).";