UniqueListTests TestUniqueList 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 TestUniqueList()
Examples

[Test]
public void TestUniqueList()
{
    var list = new UniqueList<int> { 2, 3, 4, 2 };
    Assert.AreEqual(3, list.Count);
    Assert.AreEqual(2, list[0]);
    Assert.AreEqual("2, 3, 4", list.ToText());
    list.Remove(2);
    list.Remove(5);
    Assert.AreEqual("3, 4", list.ToText());
}
See Also