Exemplo n.º 1
0
        public async Task Hash32_StreamAsync_ReturnsExpectedValuesAsync(FnvTestVector data)
        {
            using var stream = new MemoryStream(data.Buffer);
            uint result = await Fnv1.Hash32Async(stream);

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