public async Task GetFileHashAsyncTest() { // Arrange var handler = new MD5Hash(); // Act string hash = await handler.GetFileHashAsync(filename); // Assert Assert.IsTrue(hash.Length > 0); }
public async Task GetAndCheckFileHashTest() { // Arrange var handler = new MD5Hash(); // Act string hash = await handler.GetFileHashAsync(filename); bool matches = await handler.CheckFileHashAsync(filename, hash); // Assert Assert.IsTrue(matches); }