public void Hash64_Stream_ReturnsExpectedValues(FnvTestVector data) { using var stream = new MemoryStream(data.Buffer); ulong result = Fnv1a.Hash64(stream); Assert.That(result, Is.EqualTo(data.ExpectedResult64)); }
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 void Hash64_ReturnsExpectedValues(FnvTestVector data) { ulong result = Fnv1a.Hash64(data.Buffer); Assert.AreEqual(data.ExpectedResult64, result); }
public void Hash64_ReturnsExpectedValues(FnvTestVector data) { ulong result = Fnv1a.Hash64(data.Buffer); Assert.That(result, Is.EqualTo(data.ExpectedResult64)); }
public void Hash64_NullBuffer_ThrowsArgumentNullException() { Assert.Throws <ArgumentNullException>(() => Fnv1a.Hash64(null)); }