Why does this code Assert?
class Test { }
class Program
{
static void Main(string[] args)
{
MemProfiler.FullSnapShot();
MemProfiler.FullSnapShot();
MemAssertion.NoNewInstances();
MemProfiler.FullSnapShot();
using (MemAssertion.BeginAssertions())
{
MemAssertion.NoNewInstances();
}
Test test = new Test();
MemAssertion.NoNewInstancesExcept(typeof(Test));
}
}