public void can_alter_max_sending_count()
 {
     var choke = new SendingChoke();
     choke.AlterSendingCountMaximumTo(10);
     5.Times(x =>
     {
         choke.StartSend();
         choke.SuccessfullyConnected();
     });
     choke.ShouldBeginSend().ShouldBeTrue();
     5.Times(x =>
     {
         choke.StartSend();
         choke.SuccessfullyConnected();
     });
     choke.ShouldBeginSend().ShouldBeFalse();
 }
        public void can_alter_max_sending_count()
        {
            var choke = new SendingChoke();

            choke.AlterSendingCountMaximumTo(10);
            5.Times(x =>
            {
                choke.StartSend();
                choke.SuccessfullyConnected();
            });
            choke.ShouldBeginSend().ShouldBeTrue();
            5.Times(x =>
            {
                choke.StartSend();
                choke.SuccessfullyConnected();
            });
            choke.ShouldBeginSend().ShouldBeFalse();
        }