示例#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));
        }