Browse Source

use RuntimeInformation instead of Compat

pull/55/head
JT 1 year ago
parent
commit
e61348b0ac
  1. 5
      StabilityMatrix.Tests/ReparsePoints/JunctionTests.cs

5
StabilityMatrix.Tests/ReparsePoints/JunctionTests.cs

@ -1,5 +1,4 @@
using System.Runtime.Versioning; using System.Runtime.InteropServices;
using StabilityMatrix.Core.Helper;
using StabilityMatrix.Core.ReparsePoints; using StabilityMatrix.Core.ReparsePoints;
namespace StabilityMatrix.Tests.ReparsePoints; namespace StabilityMatrix.Tests.ReparsePoints;
@ -15,7 +14,7 @@ public class JunctionTest
[TestInitialize] [TestInitialize]
public void Initialize() public void Initialize()
{ {
if (!Compat.IsWindows) if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{ {
Assert.Inconclusive("Test cannot be run on anything but Windows currently."); Assert.Inconclusive("Test cannot be run on anything but Windows currently.");
return; return;

Loading…
Cancel
Save