예제 #1
0
        public void GetFingerprint_NoArguments_HashReproduced()
        {
            var fp  = FingerprintClass.GetFingerprint(null);
            var fp2 = FingerprintClass.GetFingerprint(null);

            Assert.AreEqual(fp, fp2);
        }
예제 #2
0
        public void GetFingerprint_IntegerList_HashReproduced()
        {
            var intList = new[] { 9, 10, 348, 5444, 1111, 3243, 656756, 8 }.Cast <object>().ToList();
            var fp  = FingerprintClass.GetFingerprint(intList);
            var fp2 = FingerprintClass.GetFingerprint(intList);

            Assert.AreEqual(fp, fp2);
        }