Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
<PackageVersion Include="Vecc.YamlDotNet.Analyzers.StaticGenerator" Version="18.1.0" />
<PackageVersion Include="Wiremock.Net" Version="2.6.0" />
<PackageVersion Include="xunit" Version="2.9.3" />
<PackageVersion Include="xunit.v3" Version="3.2.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
<PackageVersion Include="Xunit.StaFact" Version="1.2.69" />
<PackageVersion Include="Xunit.StaFact" Version="3.0.13" />
<PackageVersion Include="YamlDotNet" Version="18.1.0" />
</ItemGroup>
<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion tests/KubernetesClient.Tests/AuthTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
using System.Text;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;

namespace k8s.Tests
{
Expand Down
3 changes: 1 addition & 2 deletions tests/KubernetesClient.Tests/KubernetesClient.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MartinCostello.Logging.XUnit" />
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Microsoft.Extensions.Logging" />
<PackageReference Include="System.IO.Abstractions.TestingHelpers" />
Expand All @@ -23,7 +22,7 @@
<PackageReference Include="NJsonSchema" />
<PackageReference Include="NSwag.Core" />
<PackageReference Include="System.Text.Json" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.v3" />
<PackageReference Include="xunit.runner.visualstudio">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
1 change: 0 additions & 1 deletion tests/KubernetesClient.Tests/KubernetesMetricsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Linq;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;

namespace k8s.Tests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Threading;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;

namespace k8s.Tests.LeaderElection
{
Expand Down
2 changes: 1 addition & 1 deletion tests/KubernetesClient.Tests/Logging/TestOutputLogger.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.Extensions.Logging;
using System;
using System.Reactive.Disposables;
using Xunit.Abstractions;
using Xunit;

namespace k8s.Tests.Logging
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Extensions.Logging;
using System;
using Xunit.Abstractions;
using Xunit;

namespace k8s.Tests.Logging
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Extensions.Logging;
using System;
using Xunit.Abstractions;
using Xunit;

namespace k8s.Tests.Logging
{
Expand Down
2 changes: 1 addition & 1 deletion tests/KubernetesClient.Tests/Mock/MockKubeApiServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using Xunit.Abstractions;
using Xunit;

namespace k8s.Tests.Mock
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
using System.Runtime.InteropServices;
using Xunit;
using Xunit.v3;

namespace k8s.Tests
{
public class OperatingSystemDependentFactAttribute : FactAttribute
public class OperatingSystemDependentFactAttribute : FactAttribute, IFactAttribute
{
public OperatingSystems Include { get; set; } = OperatingSystems.Linux | OperatingSystems.Windows | OperatingSystems.OSX;
public OperatingSystems Exclude { get; set; }

public override string Skip
{
get => IsOS(Include) && !IsOS(Exclude) ? null : "Not compatible with current OS";
set { }
}
string IFactAttribute.Skip => IsOS(Include) && !IsOS(Exclude) ? null : "Not compatible with current OS";

private bool IsOS(OperatingSystems operatingSystems)
{
Expand Down
1 change: 0 additions & 1 deletion tests/KubernetesClient.Tests/PodExecTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using System.Threading;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;

namespace k8s.Tests
{
Expand Down
1 change: 0 additions & 1 deletion tests/KubernetesClient.Tests/SerializationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;

namespace k8s.Tests
{
Expand Down
1 change: 0 additions & 1 deletion tests/KubernetesClient.Tests/V1StatusObjectViewTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using k8s.Tests.Mock;
using System.Text.Json;
using Xunit;
using Xunit.Abstractions;

namespace k8s.Tests
{
Expand Down
1 change: 0 additions & 1 deletion tests/KubernetesClient.Tests/WatchTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using System.Threading;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;

namespace k8s.Tests
{
Expand Down
1 change: 0 additions & 1 deletion tests/KubernetesClient.Tests/WebSocketTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using System.Threading;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;

namespace k8s.Tests
{
Expand Down
Loading