Skip to content

Commit

Permalink
Fix tests after namespace adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
sorensenmatias committed Mar 2, 2024
1 parent d01e1d9 commit 14d5465
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tests/Hosting/HostTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void DefaultBuilder_ReportsDuplicate()

applicationBuilder.Build();

duplicates.Should().Contain("Tests.Hosting.HostTests+IMyService is registered 2 times");
duplicates.Should().Contain("ServiceProviderValidationExtensions.Tests.Hosting.HostTests+IMyService is registered 2 times");
}

[Fact]
Expand Down Expand Up @@ -74,7 +74,7 @@ public void ApplicationBuilder_BasicReporting()

applicationBuilder.Build();

duplicates.Should().Contain("Tests.Hosting.HostTests+IMyService is registered 2 times");
duplicates.Should().Contain("ServiceProviderValidationExtensions.Tests.Hosting.HostTests+IMyService is registered 2 times");
}

[Fact]
Expand Down
4 changes: 2 additions & 2 deletions tests/ReportingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void ServiceRegisteredTwice()

serviceCollection.BuildServiceProviderWithValidation(reportingBuilder);

duplicateServiceOutput.Should().ContainSingle().Which.Should().Be("Tests.ReportingTests+IMyService is registered 2 times");
duplicateServiceOutput.Should().ContainSingle().Which.Should().Be("ServiceProviderValidationExtensions.Tests.ReportingTests+IMyService is registered 2 times");
}

[Fact]
Expand All @@ -38,7 +38,7 @@ public void ServiceRegisteredTwiceOnceUsingLambda()

serviceCollection.BuildServiceProviderWithValidation(reportingBuilder);

duplicateServiceOutput.Should().ContainSingle().Which.Should().Be("Tests.ReportingTests+IMyService is registered 2 times");
duplicateServiceOutput.Should().ContainSingle().Which.Should().Be("ServiceProviderValidationExtensions.Tests.ReportingTests+IMyService is registered 2 times");
}

private interface IMyService
Expand Down

0 comments on commit 14d5465

Please sign in to comment.