Skip to content

Commit 06defee

Browse files
committed
fix dataprovider DI check
1 parent 2ce8a7f commit 06defee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Serilog.Ui.SqliteProvider.Tests/Extensions/SerilogUiOptionBuilderExtensionsTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void It_registers_multiple_providers()
5757

5858
var providersOptions = serviceProvider.GetRequiredService<ProvidersOptions>();
5959
providersOptions.DisabledSortProviderNames.Should().BeEmpty();
60-
providersOptions.ExceptionAsStringProviderNames.Should().BeEmpty();
60+
providersOptions.ExceptionAsStringProviderNames.Should().HaveCount(2);
6161
}
6262

6363
[Fact]
@@ -89,7 +89,7 @@ public void It_throws_on_invalid_registration()
8989

9090
foreach (var nullable in nullables)
9191
{
92-
nullable.Should().ThrowExactly<ArgumentNullException>();
92+
nullable.Should().Throw<ArgumentException>();
9393
}
9494
}
9595
}

0 commit comments

Comments
 (0)