ChangeableListTests RemoveItemFromList 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 RemoveItemFromList()
Examples

[Test]
public void RemoveItemFromList()
{
    list.RemoveAt(1);
    Assert.AreEqual(new List<int> { 1, 5 }, list);
}
[Test]
public void RemoveItemFromListFromEnumerationDepth()
{
    list.Remove(5);
    var emulator = list.GetEnumerator();
    emulator.MoveNext();
    emulator.MoveNext();
    emulator.MoveNext();
    emulator.Reset();
    list.RemoveAt(1);
    Assert.AreEqual(new List<int> { 1, 3 }, list);
}
See Also