Esempio n. 1
0
        public void IsErrorEnabled_Test(bool expectedErrorEnabled, string loggerName)
        {
            try
            {
                bool resultErrorEnabled = LogIF.IsErrorEnabled(loggerName);

                Assert.AreEqual(resultErrorEnabled, expectedErrorEnabled);
            }
            catch (Exception ex)
            {
                // Print a stack trace when an exception occurs.
                Console.WriteLine(ex.StackTrace);
                throw;
            }
        }