StringExtensionsTests SplitAndTrimByChar 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 static void SplitAndTrimByChar()
Examples

[Test]
public static void SplitAndTrimByChar()
{
    string[] components = "abc, 123, def".SplitAndTrim(',');
    Assert.AreEqual(components.Length, 3);
    Assert.AreEqual(components[0], "abc");
    Assert.AreEqual(components[1], "123");
    Assert.AreEqual(components[2], "def");
}
See Also