Beispiel #1
0
        public void ADL_Debug_RemovePrefixForMask_Test()
        {
            ADLLogger logger = new ADLLogger("UnitTest");
            BitMask   bm     = new BitMask(2 | 8);

            logger.AddPrefixForMask(bm, "HELLO");
            logger.RemovePrefixForMask(bm);


            Debug.AdlEnabled = false;

            logger.AddPrefixForMask(bm, "AAA");
            logger.RemovePrefixForMask(bm);
            Debug.AdlEnabled = true;

            Assert.True(logger.GetAllPrefixes().Count == 0);
        }
Beispiel #2
0
        public void ADL_Debug_RemovePrefixForMask_Test()
        {
            ADLLogger logger = new ADLLogger(InternalADLProjectDebugConfig.Settings, "UnitTest");
            BitMask   bm     = new BitMask(2 | 8);

            logger.AddPrefixForMask(bm, "HELLO");
            logger.RemovePrefixForMask(bm);

            Assert.True(logger.GetAllPrefixes().Count == 0);
        }