Exemple #1
0
 public void GetCrcFile1()
 {
     byte[] check = Crc32.GetFileCRC32("../../TestData/TextFile1.txt");
     Assert.IsNotNull(check);
     Assert.AreEqual(4, check.Length);
     for (int i = 0; i < File1Sum.Length; i++)
     {
         if (check[i] != File1Sum[i])
         {
             Assert.Fail("Result byte {0} does not match! Was {1}, expected {2}",
                         i, check[i], File1Sum[i]);
         }
     }
 }
Exemple #2
0
 public void GetCrcInvalidPath()
 {
     byte[] crc = Crc32.GetFileCRC32("poo");
 }
Exemple #3
0
 public void GetCrcNullPath()
 {
     byte[] crc = Crc32.GetFileCRC32(null);
 }