logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Problem mocking log4net appender
Date Fri, 01 Dec 2006 06:36:41 GMT

On Nov 30, 2006, at 12:39 PM, Matt Young wrote:

> Greetings :)
>
> I encountered a problem with NMock2 (1.0.2313.18049) while attempting
> to mock a log4net (1.2.10.0) appender. The mock appender throws an
> ExpectionException when log4net calls DoAppend and then log4net eats
> the exception the test finishes.  The problem is
> VerifyAllExpectationsHaveBeenMet() does not cause the test to fail.
> Apparently the mock appender does not remember that the Expect.Never
> expectation was broken.
>
> Can anyone suggest a workaround to this problem? Thanks :)
>

Looks like this should have been posted on log4net-user, not log4cxx- 
user.




Mime
View raw message