public void Test_Get()
 {
     for (int i = 0; i < _testStrings.Length; ++i)
     {
         Assert.AreEqual(_expectedHashes[i], StringHashCode.Get(_testStrings[i]));
     }
 }
示例#2
0
 public StringKey(string str)
 {
     Value    = str;
     HashCode = StringHashCode.Calculate(str);
 }