是否有一种“标准”方式来引入针对 Log4Net 输出的断言?
例如
NUnit.Log4Net.Checkpoint()
...run some code that should not throw warnings...
NUnit.Log4Net.AssertNoErrors()
NUnit.Log4Net.AssertNoErrorsOrWarnings()
或者
NUnit.Log4Net.Checkpoint()
...code that warns user about an obsolete value...
NUnit.Log4Net.AssertOneWarnings("obsolete value used")
我可以为 Log4Net 编写一个断言附加程序,但我认为肯定已经有什么东西了?