test: update WithCustomCryptoProvider null test to expect ArgumentNullException
This commit is contained in:
+4
-3
@@ -265,11 +265,12 @@ public class SecureConfigBuilderTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void WithCustomCryptoProvider_WithNullFactory_ItShouldSetNull()
|
public void WithCustomCryptoProvider_WithNullFactory_ItShouldThrowArgumentNullException()
|
||||||
{
|
{
|
||||||
_sut.WithCustomCryptoProvider(null!);
|
var act = () => _sut.WithCustomCryptoProvider(null!);
|
||||||
|
|
||||||
_sut.CryptoProviderFactory.Should().BeNull();
|
act.Should().Throw<ArgumentNullException>()
|
||||||
|
.WithParameterName("cryptoProviderFactory");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
Reference in New Issue
Block a user