public async Task Hash64_StreamAsync_ReturnsExpectedValuesAsync(FnvTestVector data) { using var stream = new MemoryStream(data.Buffer); ulong result = await Fnv1.Hash64Async(stream); Assert.That(result, Is.EqualTo(data.ExpectedResult64)); }
public void Hash64_Stream_ReturnsExpectedValues(FnvTestVector data) { using var stream = new MemoryStream(data.Buffer); ulong result = Fnv1.Hash64(stream); Assert.That(result, Is.EqualTo(data.ExpectedResult64)); }
public async Task Hash32_StreamAsync_ReturnsExpectedValuesAsync(FnvTestVector data) { using var stream = new MemoryStream(data.Buffer); uint result = await Fnv1.Hash32Async(stream); Assert.AreEqual(data.ExpectedResult32, result); }
public void Hash32_Stream_ReturnsExpectedValues(FnvTestVector data) { using var stream = new MemoryStream(data.Buffer); uint result = Fnv1.Hash32(stream); Assert.AreEqual(data.ExpectedResult32, result); }
public void Hash64_Stream_ReturnsExpectedValues(FnvTestVector data) { using var stream = new MemoryStream(data.Buffer); ulong result = Fnv1a.Hash64(stream); Assert.AreEqual(data.ExpectedResult64, result); }
public async Task Hash64_StreamAsync_ReturnsExpectedValuesAsync(FnvTestVector data) { using (var stream = new MemoryStream(data.Buffer)) { ulong result = await Fnv1a.Hash64Async(stream); Assert.AreEqual(data.ExpectedResult64, result); } }
public void Hash64_ReturnsExpectedValues(FnvTestVector data) { ulong result = Fnv1a.Hash64(data.Buffer); Assert.AreEqual(data.ExpectedResult64, result); }
public void Hash32_ReturnsExpectedValues(FnvTestVector data) { uint result = Fnv1a.Hash32(data.Buffer); Assert.AreEqual(data.ExpectedResult32, result); }
public void Hash64_ReturnsExpectedValues(FnvTestVector data) { ulong result = Fnv1.Hash64(data.Buffer); Assert.That(result, Is.EqualTo(data.ExpectedResult64)); }
public void Hash32_ReturnsExpectedValues(FnvTestVector data) { uint result = Fnv1.Hash32(data.Buffer); Assert.That(result, Is.EqualTo(data.ExpectedResult32)); }