Пример #1
0
        public void TestUInt16Copy()
        {
            for (var n = 0; n < sizeof(UInt16) * 8; n++)
            {
                UInt16 a = (UInt16)(1 << n);
                UInt16 i = unchecked ((UInt16)0);

                Assert.Equal(a, i.SetBitCopy(n, true));
            }
        }