Beispiel #1
0
 public void GetHashSha256_Length()
 {
     Assert.AreEqual(0, EncodingUtils.GetHashSha256(1, 0).Length);
     Assert.AreEqual(1, EncodingUtils.GetHashSha256(1, 1).Length);
     Assert.AreEqual(2, EncodingUtils.GetHashSha256(1, 2).Length);
     Assert.AreEqual(32, EncodingUtils.GetHashSha256(1, 100).Length);
 }
Beispiel #2
0
 public void GetHashSha256()
 {
     Assert.AreEqual(124, EncodingUtils.GetHashSha256(1, 1)[0]);
 }