Skip to content

Commit

Permalink
test: test CertificateXmlEncryptor
Browse files Browse the repository at this point in the history
  • Loading branch information
aguacongas committed Sep 30, 2020
1 parent ec25254 commit 2ce2bbe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
<ProjectReference Include="..\..\src\IdentityServer\Aguacongas.IdentityServer.KeysRotation\Aguacongas.IdentityServer.KeysRotation.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="XmlEncryption\" />
</ItemGroup>

<ItemGroup>
<None Update="TestCert1.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Aguacongas.IdentityServer.KeysRotation.XmlEncryption;
using System;
using Xunit;

namespace Aguacongas.IdentityServer.KeysRotation.Test.XmlEncryption
{
public class CertificateXmlEncryptorTest
{
[Fact]
public void Constructor_should_throw_on_args_null()
{
Assert.Throws<ArgumentNullException>(() => new CertificateXmlEncryptor(null, null));
Assert.Throws<ArgumentNullException>(() => new CertificateXmlEncryptor(null, null, null));
Assert.Throws<ArgumentNullException>(() => new CertificateXmlEncryptor("test", null, null));
}
}
}

0 comments on commit 2ce2bbe

Please sign in to comment.