public void TestBulkChecksum_LocalFile() { ChecksumCreator check = new ChecksumCreator(); for (int k = 0; k < algorithms.Length; k++) { string checksum = check.GenerateChecksum(localFileInput, "LOCAL_FILE", algorithms[k]); Assert.IsTrue(SecurityUtils.compareStrings(checksum, resultsLocalFile[k])); bool verify = check.VerifyChecksum(localFileInput, "LOCAL_FILE", algorithms[k], checksum); True(verify, check); } }
public void TestBulkChecksum0x() { ChecksumCreator check = new ChecksumCreator(); for (int j = 0; j < inputs.Length; j++) { for (int i = 0; i < algorithms.Length; i++) { string checksum = check.GenerateChecksum(inputs[j], inputTypes[j], algorithms[i]); Assert.IsTrue(SecurityUtils.compareStrings(checksum, results[i])); bool verify = check.VerifyChecksum(inputs[j], inputTypes[j], algorithms[i], results0x[i].ToLower()); True(verify, check); } } }