示例#1
0
        public void ShouldAddIntOrderedToNativeBuffer(IAtomicBuffer buffer)
        {
            const int initialValue = 7;
            const int increment    = 9;

            buffer.PutIntOrdered(Index, initialValue);
            buffer.AddIntOrdered(Index, increment);

            Assert.That(Marshal.ReadInt32(buffer.BufferPointer, Index), Is.EqualTo(initialValue + increment));
        }