24 lines
654 B
C#
24 lines
654 B
C#
// SPDX-License-Identifier: BUSL-1.1
|
|
// Sprint: SPRINT_4100_0006_0002 - eIDAS Crypto Plugin Tests
|
|
using StellaOps.TestKit;
|
|
using Xunit;
|
|
|
|
namespace StellaOps.Cryptography.Plugin.EIDAS.Tests;
|
|
|
|
public partial class EidasCryptoProviderTests
|
|
{
|
|
[Trait("Category", TestCategories.Unit)]
|
|
[Fact]
|
|
public void GetPasswordHasher_ThrowsNotSupported()
|
|
{
|
|
Assert.Throws<NotSupportedException>(() => _provider.GetPasswordHasher("PBKDF2"));
|
|
}
|
|
|
|
[Trait("Category", TestCategories.Unit)]
|
|
[Fact]
|
|
public void GetHasher_ThrowsNotSupported()
|
|
{
|
|
Assert.Throws<NotSupportedException>(() => _provider.GetHasher("SHA256"));
|
|
}
|
|
}
|