public void constructor_should_initialize_instance()
        {
            var server         = new Mock <IServer>().Object;
            var channel        = new Mock <IChannelHandle>().Object;
            var readPreference = ReadPreference.Primary;
            var session        = new Mock <ICoreSessionHandle>().Object;

            var result = new ChannelReadBinding(server, channel, readPreference, session);

            result._channel().Should().BeSameAs(channel);
            result._disposed().Should().BeFalse();
            result.ReadPreference.Should().BeSameAs(readPreference);
            result._server().Should().BeSameAs(server);
            result.Session.Should().BeSameAs(session);
        }
        public static bool _disposed(this ChannelReadBinding obj)
        {
            var fieldInfo = typeof(ChannelReadBinding).GetField("_disposed", BindingFlags.NonPublic | BindingFlags.Instance);

            return((bool)fieldInfo.GetValue(obj));
        }
        public static IServer _server(this ChannelReadBinding obj)
        {
            var fieldInfo = typeof(ChannelReadBinding).GetField("_server", BindingFlags.NonPublic | BindingFlags.Instance);

            return((IServer)fieldInfo.GetValue(obj));
        }
        public static IChannelHandle _channel(this ChannelReadBinding obj)
        {
            var fieldInfo = typeof(ChannelReadBinding).GetField("_channel", BindingFlags.NonPublic | BindingFlags.Instance);

            return((IChannelHandle)fieldInfo.GetValue(obj));
        }