public void the_hash_can_be_verified() { Assert.DoesNotThrow(() => _newtable.VerifyFileHash()); }
public void the_hash_is_invalid() { var exc = Assert.Throws <CorruptIndexException>(() => _table.VerifyFileHash()); Assert.IsInstanceOf <HashValidationException>(exc.InnerException); }