Lines Matching refs:Capacity
857 Assert.AreEqual(8, list.Capacity); in Capacity_Increase()
860 list.Capacity = 10; // Set capacity to a larger value to trigger growth in Capacity_Increase()
861 Assert.AreEqual(10, list.Capacity, "Capacity increased"); in Capacity_Increase()
872 Assert.AreEqual(8, list.Capacity); in Capacity_Decrease()
873 …Assert.DoesNotThrow(() => list.Capacity = 5, "Can decrease capacity if new capacity is greater tha… in Capacity_Decrease()
874 Assert.AreEqual(5, list.Capacity); in Capacity_Decrease()
876 Assert.DoesNotThrow(() => list.Capacity = 3, "Can set capacity exactly to list.Count" ); in Capacity_Decrease()
878 …Assert.Throws<ArgumentOutOfRangeException>(() => list.Capacity = 2, "Can't set the capacity smalle… in Capacity_Decrease()
880 …Assert.Throws<ArgumentOutOfRangeException>(() => list.Capacity = 0, "Can't set the capacity to zer… in Capacity_Decrease()
882 …Assert.Throws<ArgumentOutOfRangeException>(() => list.Capacity = -1, "Can't set the capacity to ne… in Capacity_Decrease()
891 Assert.AreEqual(8, list.Capacity); in Capacity_Zero()
893 Assert.DoesNotThrow(() => list.Capacity = 0, "Can set Capacity to 0"); in Capacity_Zero()
894 Assert.AreEqual(0, list.Capacity); in Capacity_Zero()