コード例 #1
0
        public void TestIsBitSetSByte()
        {
            sbyte s = 0;

            Assert.AreEqual(false, s.IsBitSet(0));
            Assert.AreEqual(false, s.IsBitSet(5));
            s = 9;
            Assert.AreEqual(true, s.IsBitSet(0));
            Assert.AreEqual(false, s.IsBitSet(1));
            Assert.AreEqual(false, s.IsBitSet(2));
            Assert.AreEqual(true, s.IsBitSet(3));
        }