Skip to content

Commit

Permalink
added missing test for CryptoGroup.GroupSecurityLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
lumip committed Mar 20, 2021
1 parent c2779ae commit d5d1a6e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CompactCryptoGroupAlgebra.Tests/CryptoGroupTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,18 @@ public void TestGeneratorAccessor()
Assert.AreEqual(expected, group.Generator);
}

[Test]
public void TestSecurityLevelAccessor()
{
var expectedRaw = 17;
var algebraMock = new Mock<ICryptoGroupAlgebra<int, int>>(MockBehavior.Strict);
algebraMock.Setup(alg => alg.SecurityLevel).Returns(expectedRaw);

var group = new CryptoGroup<int, int>(algebraMock.Object);

Assert.AreEqual(expectedRaw, group.SecurityLevel);
}

[Test]
public void TestConstructor()
{
Expand Down

0 comments on commit d5d1a6e

Please sign in to comment.