示例#1
0
 public void SecretTokensEqual()
 {
     for (int i = 0; i < iterations; i++)
     {
         SecretToken a = SecretToken.Create();
         AssertEqualInEveryWay(a, a);
     }
 }
示例#2
0
 public void SecretTokensNotEqualEmpty()
 {
     for (int i = 0; i < iterations; i++)
     {
         SecretToken a = SecretToken.Create();
         SecretToken b = SecretToken.Empty;
         AssertNotEqualInAnyWay(a, b);
         AssertNotEqualInAnyWay(b, a);
     }
 }
示例#3
0
        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);
            }
        }