Esempio n. 1
0
 public void HashCombiner_Test_Int()
 {
     using (var combiner1 = new HashGenerator())
         using (var combiner2 = new HashGenerator())
         {
             combiner1.AddInt(1234);
             combiner2.AddInt(1234);
             Assert.AreEqual(combiner1.GenerateHash(), combiner2.GenerateHash());
             combiner2.AddInt(1);
             Assert.AreNotEqual(combiner1.GenerateHash(), combiner2.GenerateHash());
         }
 }