public async Task ComputeHashAsync(byte[] expected, byte[] data) { //Arrange var expectedV = new HashValue(expected); var stream = new MemoryStream(data); var hash = new XXHash64(); //Act var result = await hash.ComputeHashAsync(stream, CancellationToken.None); //Assert Assert.Equal(expectedV, result); Assert.Equal <byte>(expectedV.Value, result.Value); }