Skip to content

Commit

Permalink
Run PathToUrl only on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiamurialdo committed Jan 8, 2025
1 parent b690c4c commit 393f730
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dotnet/test/DotNetCoreUnitTest/Domain/PathToUrlTest.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Runtime.InteropServices;
using GeneXus.Application;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
Expand All @@ -11,6 +12,10 @@ public class PathToUrlTest
[Fact]
public void PathToUrl()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return;
}
DefaultHttpContext httpContext = new DefaultHttpContext();

httpContext.Features.Set<IHttpRequestFeature>(new HttpRequestFeature());
Expand Down

0 comments on commit 393f730

Please sign in to comment.