Skip Navigation

Have you ever mocked your logger in a test, or wished you could? That is something like

Have you ever mocked your logger in a test, or wished you could? That is something like

TEST(some test name)

    mockLogger logger

    logger.expect_call(log("some string"))

    DoSomething(logger)

#programming

5

You're viewing a single thread.

5 comments