public void GetMD5Hash_Test()
        {
            ReferencesData data1;
            ReferencesData data2;

            using (EventLogReader reader = EventLogReader.CreateReader(_sampleDatabaseFileLGF))
            {
                data1 = ReferencesData.CreateFromReader(reader);
            }
            using (EventLogReader reader = EventLogReader.CreateReader(_sampleDatabaseFileLGF))
            {
                data2 = ReferencesData.CreateFromReader(reader);
            }

            string hashMD51 = MD5HashGenerator.GetMd5Hash(data1);
            string hashMD52 = MD5HashGenerator.GetMd5Hash(data2);

            Assert.Equal(hashMD51, hashMD52);
        }
Example #2
0
 public string GetReferencesHash()
 {
     return(MD5HashGenerator.GetMd5Hash(this));
 }