public void Cannot_go_below_min()
        {
            SyncBatchSize syncBatchSize = new SyncBatchSize(LimboLogs.Instance);

            for (int i = 0; i < 100; i++)
            {
                syncBatchSize.Shrink();
            }

            Assert.AreEqual(syncBatchSize.Current, SyncBatchSize.Min, "current is min");
            Assert.True(syncBatchSize.IsMin, "is min");
        }
        public void Cannot_go_above_max()
        {
            SyncBatchSize syncBatchSize = new SyncBatchSize(LimboLogs.Instance);

            for (int i = 0; i < 100; i++)
            {
                syncBatchSize.Expand();
            }

            Assert.AreEqual(syncBatchSize.Current, SyncBatchSize.Max, "current is max");
            Assert.True(syncBatchSize.IsMax, "is max");
        }
        public void Can_shrink_and_expand()
        {
            SyncBatchSize syncBatchSize = new SyncBatchSize(LimboLogs.Instance);
            int           beforeShrink  = syncBatchSize.Current;

            syncBatchSize.Shrink();
            Assert.AreEqual(beforeShrink / 2, syncBatchSize.Current);
            int beforeExpand = syncBatchSize.Current;

            syncBatchSize.Expand();
            Assert.AreEqual(beforeExpand * 2, syncBatchSize.Current);
        }