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]); } } }
public void GetCrcInvalidPath() { byte[] crc = Crc32.GetFileCRC32("poo"); }
public void GetCrcNullPath() { byte[] crc = Crc32.GetFileCRC32(null); }