public void HeapNoResizing_Strategy_Always_Returns_False(int size)
        {
            var instance = new HeapNoResizing();

            Assert.IsFalse(instance.TryComputeNewSize(size, out var newSize));
            Assert.AreEqual(newSize, default(int));
            Assert.False(instance.CanResize);
        }
        public void Ctor_Properly_Sets_Properties()
        {
            IResizeStrategy strategy = new HeapNoResizing();
            var             instance = Substitute.For <AbstractSizableBinaryHeap <int> >(0);

            Assert.IsTrue(instance.CanResize.Equals(strategy.CanResize));
            strategy = new HeapNoResizing();
            instance = Substitute.For <AbstractSizableBinaryHeap <int> >(0, strategy);
            Assert.IsTrue(instance.CanResize.Equals(strategy.CanResize));
            strategy = new StepHeapResizing(1);
            instance = Substitute.For <AbstractSizableBinaryHeap <int> >(0, strategy);
            Assert.IsTrue(instance.CanResize.Equals(strategy.CanResize));
            strategy = new PercentHeapResizing(1);
            instance = Substitute.For <AbstractSizableBinaryHeap <int> >(0, strategy);
            Assert.IsTrue(instance.CanResize.Equals(strategy.CanResize));
        }