Event AssertionFailed
Invoked when a memory assertion has failed.
Namespace: SciTech.NetMemProfiler
Assembly: SciTech.MemProfilerApi.dll
Syntax
public static event EventHandler AssertionFailed
Returns
Type | Description |
---|---|
System.EventHandler |
Remarks
This event can be useful when using declarative assertions and unit testing together.
[TestFixture]
public class TestClass
{
[TestFixtureSetUp]
public void FixtureSetup()
{
MemAssertion.AssertionFailed += new EventHandler( MemAssertion_AssertionFailed );
}
[TestFixtureTearDown]
public void FixtureTearDown()
{
MemAssertion.AssertionFailed -= new EventHandler( MemAssertion_AssertionFailed );
}
///