CmisSync.Lib.SelectiveIgnore.IgnoredEntitiesCollection.Remove C# (CSharp) Méthode

Remove() public méthode

public Remove ( IIgnoredEntity ignore ) : void
ignore IIgnoredEntity
Résultat void
        public void Remove(IIgnoredEntity ignore) {
            this.entries.Remove(ignore.ObjectId);
        }

Same methods

IgnoredEntitiesCollection::Remove ( string objectId ) : void

Usage Example

        public void RemoveElementById() {
            var underTest = new IgnoredEntitiesCollection();
            Assert.That(underTest.IsIgnoredId(this.objectId), Is.EqualTo(IgnoredState.NOT_IGNORED));

            underTest.Add(Mock.Of<IIgnoredEntity>(o => o.ObjectId == this.objectId && o.LocalPath == this.localPath));
            underTest.Remove(this.objectId);

            Assert.That(underTest.IsIgnoredId(this.objectId), Is.EqualTo(IgnoredState.NOT_IGNORED));
        }