// Adds monitor parameter otherwise parameter less StObjConstruct are not called.
 void StObjConstruct(IActivityMonitor m)
 {
     Assert.That(ConstructCount, Is.EqualTo(2), "ObjectA and ObjectALevel1 construct has been called.");
     SimpleObjectsTrace.LogMethod(GetType().GetMethod("StObjConstruct", BindingFlags.Instance | BindingFlags.NonPublic));
     ConstructCount = ConstructCount + 1;
 }
Exemplo n.º 2
0
 // Adds an optional parameter otherwise parameter less StObjConstruct are not called.
 void StObjConstruct(IAmNotHere?opt = null)
 {
     Assert.That(ConstructCount, Is.EqualTo(0), "First construct.");
     SimpleObjectsTrace.LogMethod(GetType().GetMethod("StObjConstruct", BindingFlags.Instance | BindingFlags.NonPublic));
     ConstructCount = ConstructCount + 1;
 }