Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        public async Task Hash64_StreamAsync_ReturnsExpectedValuesAsync(FnvTestVector data)
        {
            using (var stream = new MemoryStream(data.Buffer))
            {
                ulong result = await Fnv1.Hash64Async(stream);

                Assert.AreEqual(data.ExpectedResult64, result);
            }
        }