Sometimes, a unit test does not fail but does not succeed entirely: making it fail is too extreme and on the other hand, letting him succeed would make you miss the issue. Therefore, MbUnit now supports warnings:
QuickStart
This fixture shows 2 tests with warnings:
using System;using MbUnit.Core.Framework;using MbUnit.Framework;namespace MbUnit.Demo{ [TestFixture] public class WarningTest { [Test] public void Warning() { Assert.Warning("Be wary"); } [Test] public void Warning2() { Assert.Warning("Something weird happened"); } }}
using
namespace
{
[
}
The corresponding html report looks like this:
Page rendered at Monday, October 13, 2008 11:49:13 AM UTC
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.