Exemple #1
0
        public void GivenCollection_WhenRemovingMany_ThenNumberIsDecremented(int removal)
        {
            // Arrange
            const int initialCount = 5;

            _tags.AddMany <string>(initialCount);

            // Act
            _tags.RemoveMany <string>(removal);
            var newCount = _tags.GetCount <string>();

            // Assert
            Assert.That(newCount, Is.EqualTo(Mathf.Max(initialCount - removal, 0)));
        }