예제 #1
0
 /// <summary>
 /// Gets the name hash of the attribute
 /// </summary>
 /// <returns></returns>
 public virtual uint GetHash() => HashingHelpers.BinHash(Name);
예제 #2
0
 public void TestBinHash()
 {
     Assert.AreEqual(0xD6C2ECFAu, HashingHelpers.BinHash("CAR1004"));
     Assert.AreEqual(0u, HashingHelpers.BinHash("!"));
     Assert.AreNotEqual(0u, HashingHelpers.BinHash("!!"));
 }