treasurechest/tests/KeyGenTest.cs
2020-05-08 20:00:42 -05:00

27 lines
538 B
C#

using NUnit.Framework;
using chestcrypto;
using System;
namespace tests
{
public class Tests
{
[SetUp]
public void Setup()
{
}
[Test]
public void TestKeyGen()
{
byte[] key = chestcrypto.PrivateKeyGenerator.generate();
if (key.Length != 96){
Assert.Fail();
}
if (key.Equals(chestcrypto.PrivateKeyGenerator.generate())){
Assert.Fail();
}
Assert.Pass();
}
}
}