public void Should_forget_success_after_reset()
 {
     do
     {
         clusterHostSelectionStrategy.Current();
         clusterHostSelectionStrategy.Success();
     } while (clusterHostSelectionStrategy.Next());
     clusterHostSelectionStrategy.Succeeded.ShouldBeTrue();
     clusterHostSelectionStrategy.Reset();
     clusterHostSelectionStrategy.Succeeded.ShouldBeFalse();
 }
        public void Should_restart_from_next_item_and_then_try_all()
        {
            for (var i = 0; i < 10; i++)
            {
                var count = 0;
                defaultClusterHostSelectionStrategy.Reset();
                do
                {
                    var item = defaultClusterHostSelectionStrategy.Current();
                    writer.Write(item);

                    count++;
                    if (count == 3)
                    {
                        defaultClusterHostSelectionStrategy.Success();
                    }
                } while (defaultClusterHostSelectionStrategy.Next());
                writer.Write("_");
            }

            writer.ToString().Should().Be("012_301_230_123_012_301_230_123_012_301_");
        }
 public virtual void Reset()
 {
     clusterHostSelectionStrategy.Reset();
 }