Skip to content

Commit

Permalink
Disable some DependencyInjections Options tests on non-Windows platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Feb 14, 2023
1 parent 25007e6 commit 0f15bc5
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.Json;
using AutoFixture;
Expand All @@ -28,6 +29,11 @@ public ExtensionConfigurationTests()
[Fact]
public void ItemsSet()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return;
}

// Arrange
var expected = _fixture.Create<Option1>();
var manifests = new[]
Expand All @@ -48,6 +54,11 @@ public void ItemsSet()
[Fact]
public void SingleArray()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return;
}

// Arrange
var manifests = new[]
{
Expand All @@ -66,6 +77,11 @@ public void SingleArray()
[Fact]
public void LastArrayIsUsed()
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
return;
}

// Arrange
var manifests = new[]
{
Expand Down

0 comments on commit 0f15bc5

Please sign in to comment.