rinseoff/tests/TestKeyGen.cs

25 lines
489 B
C#
Raw Normal View History

2020-12-19 06:25:49 +00:00
using NUnit.Framework;
using System.IO;
using rinseoff;
namespace tests
{
public class Tests
{
[SetUp]
public void Setup()
{
}
[Test]
public void TestKeyGenBasic()
{
var f = Path.GetTempFileName();
RinseOff.generateKeyFile(f);
var k = File.ReadAllBytes(f);
Assert.IsTrue(k.Length == 32);
Assert.IsFalse(k[0] == k[1]);
File.Delete(f);
}
}
}