ChangeableListTests RemoveItemImmediatelyAfterAddingWhileEnumerating Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void RemoveItemImmediatelyAfterAddingWhileEnumerating()
Examples

[Test]
public void RemoveItemImmediatelyAfterAddingWhileEnumerating()
{
    foreach (int num in list)
    {
        list.Add(9);
        list.Remove(9);
    }
    Assert.IsFalse(list.Contains(9));
}
See Also