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

[Test]
public void MaxStringLength()
{
    Assert.AreEqual(null, ((string)null).MaxStringLength(4));
    Assert.AreEqual("", "".MaxStringLength(4));
    Assert.AreEqual("abcd", "abcd".MaxStringLength(4));
    Assert.AreEqual("ab..", "abcde".MaxStringLength(4));
    Assert.AreEqual("..", "abcde".MaxStringLength(1));
}
See Also