TestingLoggingProvider.assertHasMessage

Asserts that this provider has a cached log message that satisfies the given boolean delegate function.

  1. void assertHasMessage(bool delegate(LogMessage) dg, string message)
    class TestingLoggingProvider
    void
    assertHasMessage
    (
    bool delegate dg
    ,
    string message = "No matching log message for delegate function."
    )
  2. void assertHasMessage(string expected, bool caseSensitive)
  3. void assertHasMessage(Level level)

Parameters

dg bool delegate

A delegate function that takes a log message, and returns true if the message matches, or false otherwise.

message string

The message to show if no matching log messages are found.