treasurechest/tests/KeyGenTest.cs

28 lines
539 B
C#
Raw Normal View History

2020-05-08 13:38:08 +00:00
using NUnit.Framework;
using chestcrypto;
using System;
namespace tests
{
public class Tests
{
[SetUp]
public void Setup()
{
}
[Test]
public void TestKeyGen()
{
2020-05-09 01:00:42 +00:00
byte[] key = chestcrypto.PrivateKeyGenerator.generate();
if (key.Length != 96){
Assert.Fail();
}
if (key.Equals(chestcrypto.PrivateKeyGenerator.generate())){
2020-05-08 13:38:08 +00:00
Assert.Fail();
}
Assert.Pass();
}
2020-05-08 13:38:08 +00:00
}
}