22 lines
645 B
C#
22 lines
645 B
C#
using FluentAssertions;
|
|
using StellaOps.Cryptography;
|
|
using Xunit;
|
|
namespace StellaOps.Cryptography.Tests;
|
|
public sealed partial class EidasCapabilityDetectionTests
|
|
{
|
|
[Fact]
|
|
public void GetSigner_ReturnsEidasSigner()
|
|
{
|
|
var provider = CreateProviderWithKey("test-key-local");
|
|
var keyRef = new CryptoKeyReference("test-key-local");
|
|
|
|
var signer = provider.GetSigner("ECDSA-P256", keyRef);
|
|
|
|
signer.Should().NotBeNull();
|
|
signer.KeyId.Should().Be("test-key-local");
|
|
signer.AlgorithmId.Should().Be("ECDSA-P256");
|
|
|
|
_output.WriteLine("✓ GetSigner returns valid EidasSigner");
|
|
}
|
|
}
|