예제 #1
0
        public void ImmediateDispatcher_1000xMiscMessagesSent_DispatchBaseTypesBenchmark()
        {
            // Arrange
            var errorOccured      = new ErrorOccured();
            var somethingHappened = new SomethingHappened();

            // Act
            for (var i = 0; i < 1000; i++)
            {
                dispatcher.DispatchBaseTypes(errorOccured);
                dispatcher.DispatchBaseTypes(somethingHappened);
                dispatcher.DispatchBaseTypes(somethingHappened);
            }

            // Assert
            Assert.IsTrue(true);
        }