public void SecretTokensEqual() { for (int i = 0; i < iterations; i++) { SecretToken a = SecretToken.Create(); AssertEqualInEveryWay(a, a); } }
public void SecretTokensNotEqualEmpty() { for (int i = 0; i < iterations; i++) { SecretToken a = SecretToken.Create(); SecretToken b = SecretToken.Empty; AssertNotEqualInAnyWay(a, b); AssertNotEqualInAnyWay(b, a); } }
public void SecretTokensParse() { for (int i = 0; i < iterations; i++) { SecretToken a = SecretToken.Create(); SecretToken b; Assert.IsTrue(SecretToken.TryParse(a.ToString(), out b)); AssertEqualInEveryWay(a, b); AssertEqualInEveryWay(b, a); } }