Esempio n. 1
0
        public async Task Can_SetBit_And_GetBit_And_BitCount()
        {
            const string key    = "BitKey";
            const int    offset = 100;
            await NativeAsync.SetBitAsync(key, offset, 1);

            Assert.AreEqual(1, await NativeAsync.GetBitAsync(key, offset));
            Assert.AreEqual(1, await NativeAsync.BitCountAsync(key));
        }