StringExtensionsTests SplitAndTrimByString 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 SplitAndTrimByString()
Examples

[Test]
public static void SplitAndTrimByString()
{
    string[] components = "3 plus 5 is 8".SplitAndTrim("plus", "is");
    Assert.AreEqual(components.Length, 3);
    Assert.AreEqual(components[0], "3");
    Assert.AreEqual(components[1], "5");
    Assert.AreEqual(components[2], "8");
}
See Also