public void TestNoOdd() { bool success = true; try{ Niceware.GeneratePassphrase(3); } catch (System.ArgumentException) { success = false; } Assert.IsFalse(success); }
public void TestGeneratePassphraseCount() { // 2 bytes per word Assert.IsTrue(Niceware.GeneratePassphrase(4).Count == 2); }