Example #1
0
        public async Task Hash32_StreamAsync_ReturnsExpectedValuesAsync(FnvTestVector data)
        {
            using var stream = new MemoryStream(data.Buffer);
            uint result = await Fnv1a.Hash32Async(stream);

            Assert.That(result, Is.EqualTo(data.ExpectedResult32));
        }
Example #2
0
        public async Task Hash32_StreamAsync_ReturnsExpectedValuesAsync(FnvTestVector data)
        {
            using (var stream = new MemoryStream(data.Buffer))
            {
                uint result = await Fnv1a.Hash32Async(stream);

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