Esempio n. 1
0
 public void SCOPE_Create_Global_Aspect()
 {
     for (int i = 0; i < 10; i++)
     {
         var t = new AspectScopeTests_Target();
         Assert.Equal(1, AspectScopeTests_GlobalAspect._counter);
     }
 }
Esempio n. 2
0
 public void SCOPE_Create_Aspect_Per_Instance()
 {
     AspectScopeTests_PerInstanceAspect._counter = 0;
     for (int i = 0; i < 10; i++)
     {
         var t = new AspectScopeTests_Target();
         Assert.Equal(i + 1, AspectScopeTests_PerInstanceAspect._counter);
     }
 }