Esempio n. 1
0
        public void TestParametrizedStateAfterInitialization()
        {
            var throttling = new DiagnoisticsEventThrottling(ThrottleAfterCountDefault);

            Assert.AreEqual(
                ThrottleAfterCountDefault,
                throttling.ThrottleAfterCount,
                "Unexpected ThrottleAfterCount state");

            Assert.AreEqual(0, throttling.CollectSnapshot().Count, "Unexpected snapshot state");
        }
        public void TestParametrizedStateAfterInitialization()
        {
            var throttling = new DiagnoisticsEventThrottling(ThrottleAfterCountDefault);

            Assert.AreEqual(
                ThrottleAfterCountDefault,
                throttling.ThrottleAfterCount,
                "Unexpected ThrottleAfterCount state");

            Assert.AreEqual(0, throttling.CollectSnapshot().Count, "Unexpected snapshot state");
        }