TestFixture MbUnit Expansion snippet for TestFixture testfixture Expansion
namespace Test namespace type Tested type /// A for the class. /// [TestFixture] [TestsOn(typeof($type$))] public class $type$Test { #region Fields, SetUp and TearDown private $type$ target = null; /// /// Sets up the fixture /// [SetUp] public void SetUp() { this.target = new $type$(); } /// /// Cleans up the fixture /// [TearDown] public void TearDown() { IDisposable disposable = this.target as IDisposable; if (disposable!=null) disposable.Dispose(); } #endregion #region Test cases [Test] public void Test() { $end$ } #endregion } } ]]>