Skip to content

Commit 95ba0d6

Browse files
Update dependency NUnit.Analyzers to 4.10.0 (#5053)
* Update dependency NUnit.Analyzers to 4.10.0 * Swap the assert * Make the class abstract --------- Co-authored-by: dependencyupdates[bot] <218638057+dependencyupdates[bot]@users.noreply.github.com> Co-authored-by: Tamara Rivera <[email protected]>
1 parent 184b009 commit 95ba0d6

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

src/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<PackageVersion Include="NServiceBus.Transport.PostgreSql" Version="8.1.9" />
5353
<PackageVersion Include="NuGet.Versioning" Version="6.14.0" />
5454
<PackageVersion Include="NUnit" Version="4.4.0" />
55-
<PackageVersion Include="NUnit.Analyzers" Version="4.7.0" />
55+
<PackageVersion Include="NUnit.Analyzers" Version="4.10.0" />
5656
<PackageVersion Include="NUnit3TestAdapter" Version="5.2.0" />
5757
<PackageVersion Include="OpenTelemetry.Exporter.Console" Version="1.9.0" />
5858
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.9.0" />

src/ServiceControl.Persistence.Tests/EnsureSettingsInContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public void CheckForBothTypes()
1313
var baseSettings = ServiceProvider.GetRequiredService<PersistenceSettings>();
1414

1515
var actualType = baseSettings.GetType();
16-
Assert.That(typeof(PersistenceSettings), Is.Not.EqualTo(actualType));
16+
Assert.That(actualType, Is.Not.EqualTo(typeof(PersistenceSettings)));
1717

1818
// Persistence implementation must also register the same singleton as the persister-specific type
1919
var settingsAsActualType = ServiceProvider.GetRequiredService(actualType);

src/ServiceControl.Transports.Tests/FullEndpointTestFixture.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
using ServiceControl.Infrastructure;
88

99
[TestFixture]
10-
class FullEndpointTestFixture
10+
11+
abstract class FullEndpointTestFixture
1112
{
1213
[SetUp]
1314
public virtual async Task Setup()

src/ServiceControl.Transports.Tests/TransportTestFixture.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
using Transports;
1919

2020
[TestFixture]
21-
class TransportTestFixture
21+
22+
abstract class TransportTestFixture
2223
{
2324
[SetUp]
2425
public virtual async Task Setup()
2526
{
26-
//used for loggers outside of ServiceControl (i.e. transports and core) to use the logger factory defined here
27+
//used for loggers outside ServiceControl (i.e. transports and core) to use the logger factory defined here
2728
LogManager.UseFactory(new ExtensionsLoggerFactory(new TestContextAppenderFactory(Microsoft.Extensions.Logging.LogLevel.Warning)));
2829
LoggerUtil.ActiveLoggers = Loggers.Test;
2930
configuration = new TransportTestsConfiguration();

src/ServiceControlInstaller.Engine.UnitTests/Configuration/InstallationFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.IO;
44
using NUnit.Framework;
55

6-
public class InstallationFixture
6+
public abstract class InstallationFixture
77
{
88
[SetUp]
99
public void SetUp()

0 commit comments

Comments
 (0)