Skip to content

Commit

Permalink
Disable test for unix.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Oct 12, 2023
1 parent 507e9ff commit bfcc9ba
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;

using FluentAssertions;

Expand All @@ -23,6 +24,10 @@ public class IkvmReferenceExportItemPrepareTests
[DataRow("net6.0", ".NETCore", "6.0")]
public void CanPrepare(string tfm, string targetFrameworkIdentifier, string targetFrameworkVersion)
{
// no reference assemblies for NetFX on Unix
if (tfm == "net472" && RuntimeInformation.IsOSPlatform(OSPlatform.Windows) == false)
return;

var engine = new Mock<IBuildEngine7>();
var errors = new List<BuildErrorEventArgs>();
engine.Setup(x => x.LogErrorEvent(It.IsAny<BuildErrorEventArgs>())).Callback((BuildErrorEventArgs e) => errors.Add(e));
Expand Down

0 comments on commit bfcc9ba

Please sign in to comment.