Exemple #1
0
        public void ADL_Debug_GetPrefixMask_Test()
        {
            ADLLogger logger = new ADLLogger("UnitTest");

            logger.SetAllPrefixes("Hello", "HELLO1", "HOLA2");
            if (logger.GetPrefixMask("Hello", out BitMask bm))
            {
                Assert.True(bm == 1);
            }
            if (logger.GetPrefixMask("HELLO1", out bm))
            {
                Assert.True(bm == 2);
            }
            if (logger.GetPrefixMask("HOLA2", out bm))
            {
                Assert.True(bm == 4);
            }
        }