Click or drag to resize

StringExtensions Class

Adds functionality that is often used for unit testing to the string data type
Inheritance Hierarchy
SystemObject
  TestHelperExtensionsStringExtensions

Namespace:  TestHelperExtensions
Assembly:  CBI.TestHelperExtensions (in CBI.TestHelperExtensions.dll) Version: 2.1.0.1
Syntax
public static class StringExtensions

The StringExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetRandom(String)
Returns a random string of 8 characters
Public methodStatic memberGetRandom(String, Int32)
Returns a random string of the specified length
Public methodStatic memberGetRandomEmailAddress
Returns a random string in a format representing an email address.
Public methodStatic memberGetRandomUSPhoneNumber
Returns a random string in a format representing a US phone number
Public methodStatic memberRegexMatch
Indicates whether the specified regular expression pattern finds a match in the specified input string.
Public methodStatic memberRepeat(String, Int32)
Repeats the specified string a number of times
Public methodStatic memberRepeat(String, Int32, String)
Repeats the specified string a number of times, each instance separated by the separator string
Public methodStatic memberToStream
Converts the specified string into a System.IO.Stream type.
Top
Remarks
This library is not intended for use as production code, but instead is intended to provide functionality in the test libraries for that production code.
See Also