Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public void Hash64_Stream_ReturnsExpectedValues(FnvTestVector data)
 {
     using (var stream = new MemoryStream(data.Buffer))
     {
         ulong result = Fnv1a.Hash64(stream);
         Assert.AreEqual(data.ExpectedResult64, result);
     }
 }
Esempio n. 3
0
        public void Hash64_ReturnsExpectedValues(FnvTestVector data)
        {
            ulong result = Fnv1a.Hash64(data.Buffer);

            Assert.AreEqual(data.ExpectedResult64, result);
        }
Esempio n. 4
0
        public void Hash64_ReturnsExpectedValues(FnvTestVector data)
        {
            ulong result = Fnv1a.Hash64(data.Buffer);

            Assert.That(result, Is.EqualTo(data.ExpectedResult64));
        }
Esempio n. 5
0
 public void Hash64_NullBuffer_ThrowsArgumentNullException()
 {
     Assert.Throws <ArgumentNullException>(() => Fnv1a.Hash64(null));
 }