Esempio n. 1
0
        public async Task Hash64_StreamAsync_ReturnsExpectedValuesAsync(FnvTestVector data)
        {
            using var stream = new MemoryStream(data.Buffer);
            ulong result = await Fnv1a.Hash64Async(stream);

            Assert.That(result, Is.EqualTo(data.ExpectedResult64));
        }
Esempio n. 2
0
        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);
            }
        }