コード例 #1
0
        public void GivenCollection_WhenRemovingAll_ThenNumberIsZeroAndDoesNotContain(int initialCount)
        {
            // Arrange
            _tags.AddMany <string>(initialCount);

            // Act
            _tags.RemoveAll <string>();

            // Assert
            Assert.That(_tags.GetCount <string>(), Is.EqualTo(0));
            Assert.That(_tags.Contains <string>(), Is.False);
        }