Esempio n. 1
0
 public void StringToHashRegion()
 {
     // Use the Assert class to test conditions
     Assert.That(HashTools.StringToHash("HelloWorld".ToCharArray(), 1, 4), Is.EqualTo(HashTools.StringToHash("HelloWorld".ToCharArray(), 1, 4)));
     // Use the Assert class to test conditions
     Assert.That(HashTools.StringToHash("HelloWorld".ToCharArray(), 1, 4), Is.Not.EqualTo(HashTools.StringToHash("ByeByeWorld".ToCharArray(), 1, 4)));
 }
Esempio n. 2
0
 public void StringToHash()
 {
     // Use the Assert class to test conditions
     Assert.That(HashTools.StringToHash("HelloWorld"), Is.EqualTo(HashTools.StringToHash("HelloWorld")));
     // Use the Assert class to test conditions
     Assert.That(HashTools.StringToHash("HelloWorld"), Is.Not.EqualTo(HashTools.StringToHash("ByeByeWorld")));
 }