From 393f730d2eb66278524d2d25acf491b0cefc469a Mon Sep 17 00:00:00 2001 From: Claudia Murialdo Date: Wed, 8 Jan 2025 12:24:15 -0300 Subject: [PATCH] Run PathToUrl only on Windows --- dotnet/test/DotNetCoreUnitTest/Domain/PathToUrlTest.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotnet/test/DotNetCoreUnitTest/Domain/PathToUrlTest.cs b/dotnet/test/DotNetCoreUnitTest/Domain/PathToUrlTest.cs index 8c4a6bb67..dbb902eb2 100644 --- a/dotnet/test/DotNetCoreUnitTest/Domain/PathToUrlTest.cs +++ b/dotnet/test/DotNetCoreUnitTest/Domain/PathToUrlTest.cs @@ -1,3 +1,4 @@ +using System.Runtime.InteropServices; using GeneXus.Application; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Features; @@ -11,6 +12,10 @@ public class PathToUrlTest [Fact] public void PathToUrl() { + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + return; + } DefaultHttpContext httpContext = new DefaultHttpContext(); httpContext.Features.Set(new HttpRequestFeature());