コード例 #1
0
ファイル: Comparisons.cs プロジェクト: youthonline/cpp-lsac
 public void IntGetHashCodeTest()
 {
     using (var a = new HugeInt("-222509832503450298345029835740293845721"))
     {
         Assert.AreNotEqual(0, a.GetHashCode());
         Assert.AreEqual(a.GetHashCode(), (a + 0).GetHashCode());
         Assert.AreNotEqual(a.GetHashCode(), (-a).GetHashCode());
     }
 }