Example #1
0
        private void AssertEventLoopSize(IEventLoopGroup eventLoopGroup, int expectedEventLoops)
        {
            eventLoopGroup.Should().NotBeNull();
            var eventLoops =
                (IEventLoop[])eventLoopGroup.GetType().GetField("eventLoops",
                                                                BindingFlags.Instance | BindingFlags.NonPublic).GetValue(eventLoopGroup);

            eventLoops.Length.Should().Be(expectedEventLoops);
        }