Example #1
0
        public void GetDataTest()
        {
            BitFlag flag = new BitFlag();

            flag[0] = true;
            flag[2] = true;
            byte value = flag.GetData();

            Assert.True(value == 0x05);
            Console.WriteLine(flag);

            flag = new BitFlag(0x05);
            Console.WriteLine(flag);
        }