Ejemplo n.º 1
0
        public void TestRemoveAuth()
        {
            long authCode = 9223372036854775806;//表示最大权限值

            for (int i = 1; i <= 62; i++)
            {
                long x = BinAuth.GetBinPower(i);
                authCode = BinAuth.RemoveAuth(authCode, x);
            }
            Assert.Equal(0L, authCode);
        }