C# Class System.Tests.StringTests

Datei anzeigen Open project: dotnet/corefx

Public Methods

Method Description
AllSubstringsAndComparisons ( string source ) : IEnumerable
Concat_Objects_TestData ( ) : IEnumerable
Concat_Strings_TestData ( ) : IEnumerable
IsNullOrWhitespace_TestData ( ) : IEnumerable
Join_ObjectArray_TestData ( ) : IEnumerable

Private Methods

Method Description
Compare ( string strA, int indexA, string strB, int indexB, int length, System.StringComparison comparisonType, int expected ) : void
CompareOrdinal_Invalid ( ) : void
Compare_Invalid ( ) : void
Compare_LongString ( ) : void
Concat_Invalid ( ) : void
Concat_Objects ( object values, string expected ) : void
Concat_String ( string values, string expected ) : void
Concat_String_ConcurrencySafe ( ) : void
Contains ( string s, string value, bool expected ) : void
Contains_NullValue_ThrowsArgumentNullException ( ) : void
CopyTo ( string s, int sourceIndex, int destinationIndex, int count, char expected ) : void
CopyTo_Invalid ( ) : void
Ctor_CharArray ( char value, int startIndex, int length, string expected ) : void
Ctor_CharArray_Invalid ( ) : void
Ctor_CharPtr ( char valueArray, string expected ) : void
Ctor_CharPtr_Empty ( ) : void
Ctor_CharPtr_Int_Int ( char valueArray, int startIndex, int length, string expected ) : void
Ctor_CharPtr_Int_Int_Empty ( ) : void
Ctor_CharPtr_Int_Int_Invalid ( ) : void
Ctor_CharPtr_OddAddressShouldStillWork ( ) : void
Ctor_Char_Int ( char c, int count, string expected ) : void
Ctor_Char_Int_Negative_Count_ThrowsArgumentOutOfRangeException ( ) : void
EndsWith ( string s, string value, System.StringComparison comparisonType, bool expected ) : void
EndsWith_Invalid ( ) : void
EndsWith_NullInStrings ( System.StringComparison comparison ) : void
EqualityOperators ( ) : void
Equals ( string s1, object obj, System.StringComparison comparisonType, bool expected ) : void
Equals_InvalidComparisonType_ThrowsArgumentOutOfRangeException ( System.StringComparison comparisonType ) : void
Format ( ) : void
Format_Invalid ( ) : void
GetEnumerator_Generic ( string s ) : void
GetEnumerator_Generic_Invalid ( ) : void
GetEnumerator_NonGeneric ( string s ) : void
GetEnumerator_NonGeneric_Invalid ( ) : void
GetEnumerator_NonGeneric_IsIDisposable ( ) : void
IndexOfAny ( string s, char anyOf, int startIndex, int count, int expected ) : void
IndexOfAny_Invalid ( ) : void
IndexOf_AllSubstrings ( string s, string value, int startIndex, StringComparison comparison ) : void
IndexOf_CyrillicE ( ) : void
IndexOf_EquivalentDiacritics ( ) : void
IndexOf_HungarianDoubleCompression ( ) : void
IndexOf_Invalid ( ) : void
IndexOf_NullInStrings ( string s, string value, int expected ) : void
IndexOf_SingleLetter ( string s, char target, int startIndex, int count, int expected ) : void
IndexOf_TurkishI ( ) : void
Insert ( string s, int startIndex, string value, string expected ) : void
Insert_Invalid ( ) : void
IsNullOrEmpty ( string value, bool expected ) : void
IsNullOrWhitespace ( string value, bool expected ) : void
IsSafeForCurrentCultureComparisons ( string str ) : bool
Item_Get ( string s, int index, char expected ) : void
Item_Get_InvalidIndex_ThrowsIndexOutOfRangeException ( ) : void
Join_ObjectArray ( string separator, object values, string expected ) : void
Join_ObjectArray_Null_ThrowsArgumentNullException ( ) : void
Join_StringArray ( string separator, string values, int startIndex, int count, string expected ) : void
Join_StringArray_Invalid ( ) : void
LastIndexOfAny ( string s, char anyOf, int startIndex, int count, int expected ) : void
LastIndexOfAny_Invalid ( ) : void
LastIndexOf_AllSubstrings ( string s, string value, int startIndex, StringComparison comparisonType ) : void
LastIndexOf_EmptyString ( string s, int expected ) : void
LastIndexOf_Invalid ( ) : void
LastIndexOf_NullInStrings ( string s, string value, int expected ) : void
LastIndexOf_SingleLetter ( string s, char value, int startIndex, int count, int expected ) : void
LastIndexOf_TurkishI ( ) : void
Length ( string s, int expected ) : void
PadLeft ( string s, int totalWidth, char paddingChar, string expected ) : void
PadLeft_NegativeTotalWidth_ThrowsArgumentOutOfRangeException ( ) : void
PadRight ( string s, int totalWidth, char paddingChar, string expected ) : void
PadRight_NegativeTotalWidth_ThrowsArgumentOutOfRangeException ( ) : void
Remove ( string s, int startIndex, int count, string expected ) : void
Remove_Invalid ( ) : void
Replace_Char_Char ( string s, char oldChar, char newChar, string expected ) : void
Replace_Char_Char_DoesntAllocateIfNothingIsReplaced ( string s, char oldChar, char newChar ) : void
Replace_String_String ( string s, string oldValue, string newValue, string expected ) : void
Replace_String_StringInvalid ( ) : void
Replace_String_String_DoesntAllocateIfNothingIsReplaced ( string s, string oldValue, string newValue ) : void
StartsWith ( string s, string value, StringComparison comparisonType, bool expected ) : void
StartsWith_Invalid ( ) : void
StartsWith_NullInStrings ( StringComparison comparison ) : void
Substring ( string s, int startIndex, int length, string expected ) : void
Substring_Invalid ( ) : void
ToCharArray ( string s, int startIndex, int length, char expected ) : void
ToCharArray_Invalid ( ) : void
ToLower ( string s, string expected ) : void
ToLowerInvariant ( string s, string expected ) : void
ToLowerToUpperInvariant_ASCII ( ) : void
ToLower_TurkishI ( ) : void
ToString ( string s ) : void
ToUpper ( string s, string expected ) : void
ToUpperInvariant ( string s, string expected ) : void
ToUpper_TurkishI ( ) : void
Trim ( string s, char trimChars, string expected ) : void
TrimEnd ( string s, char trimChars, string expected ) : void
TrimStart ( string s, char trimChars, string expected ) : void

Method Details

AllSubstringsAndComparisons() public static method

public static AllSubstringsAndComparisons ( string source ) : IEnumerable
source string
return IEnumerable

Concat_Objects_TestData() public static method

public static Concat_Objects_TestData ( ) : IEnumerable
return IEnumerable

Concat_Strings_TestData() public static method

public static Concat_Strings_TestData ( ) : IEnumerable
return IEnumerable

IsNullOrWhitespace_TestData() public static method

public static IsNullOrWhitespace_TestData ( ) : IEnumerable
return IEnumerable

Join_ObjectArray_TestData() public static method

public static Join_ObjectArray_TestData ( ) : IEnumerable
return IEnumerable