public async Task Hash32_StreamAsync_ReturnsExpectedValuesAsync(FnvTestVector data) { using var stream = new MemoryStream(data.Buffer); uint result = await Fnv1a.Hash32Async(stream); Assert.That(result, Is.EqualTo(data.ExpectedResult32)); }
public async Task Hash32_StreamAsync_ReturnsExpectedValuesAsync(FnvTestVector data) { using (var stream = new MemoryStream(data.Buffer)) { uint result = await Fnv1a.Hash32Async(stream); Assert.AreEqual(data.ExpectedResult32, result); } }