예제 #1
0
 private void TestMaxCounters(Counters counters)
 {
     Log.Info("counters max=" + Limits.GetCountersMax());
     for (int i = 0; i < Limits.GetCountersMax(); ++i)
     {
         counters.FindCounter("test", "test" + i);
     }
     SetExpected(counters);
     ShouldThrow(typeof(LimitExceededException), new _Runnable_109(counters));
     CheckExpected(counters);
 }