Ejemplo n.º 1
0
 public void WriteGeneralErrors()
 {
     VerifyLog(TraceUtilities.GENERAL_WARNING_MESSAGES_SOURCE, delegate()
     {
         // Ensure general errors are logged at the error level.
         TraceUtilities.WriteGeneralErrors(TEST_LOG_MESSAGE);
     }, ERROR_MARKER);
 }
Ejemplo n.º 2
0
        public void WriteGeneralErrors()
        {
            using (var stream = new MemoryStream()) {
                enableLoggingToMemoryStream(TraceUtilities.GENERAL_WARNING_MESSAGES_SOURCE, stream);

                // Ensure general errors are logged at the error level.
                TraceUtilities.WriteGeneralErrors(TEST_LOG_MESSAGE);
                StringAssert.Contains(ERROR_MARKER, getLogFromMemoryStream(stream));
            }
        }