Пример #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));
        }
Пример #2
0
        public void Hash64_Stream_ReturnsExpectedValues(FnvTestVector data)
        {
            using var stream = new MemoryStream(data.Buffer);
            ulong result = Fnv1.Hash64(stream);

            Assert.That(result, Is.EqualTo(data.ExpectedResult64));
        }
Пример #3
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);
        }
Пример #4
0
        public void Hash32_Stream_ReturnsExpectedValues(FnvTestVector data)
        {
            using var stream = new MemoryStream(data.Buffer);
            uint result = Fnv1.Hash32(stream);

            Assert.AreEqual(data.ExpectedResult32, result);
        }
Пример #5
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);
        }
Пример #6
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);
            }
        }
Пример #7
0
        public void Hash64_ReturnsExpectedValues(FnvTestVector data)
        {
            ulong result = Fnv1a.Hash64(data.Buffer);

            Assert.AreEqual(data.ExpectedResult64, result);
        }
Пример #8
0
        public void Hash32_ReturnsExpectedValues(FnvTestVector data)
        {
            uint result = Fnv1a.Hash32(data.Buffer);

            Assert.AreEqual(data.ExpectedResult32, result);
        }
Пример #9
0
        public void Hash64_ReturnsExpectedValues(FnvTestVector data)
        {
            ulong result = Fnv1.Hash64(data.Buffer);

            Assert.That(result, Is.EqualTo(data.ExpectedResult64));
        }
Пример #10
0
        public void Hash32_ReturnsExpectedValues(FnvTestVector data)
        {
            uint result = Fnv1.Hash32(data.Buffer);

            Assert.That(result, Is.EqualTo(data.ExpectedResult32));
        }