C# Class System.Text.Tests.StringBuilderTests

显示文件 Open project: dotnet/corefx

Public Methods

Method Description
AppendFormat_TestData ( ) : IEnumerable
AppendLine_TestData ( ) : IEnumerable
Equals_TestData ( ) : IEnumerable

Private Methods

Method Description
AppendFormat ( string original, IFormatProvider provider, string format, object values, string expected ) : void
AppendFormat_Invalid ( ) : void
AppendLine ( string original, string value, string expected ) : void
AppendLine_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_Bool ( string original, bool value, string expected ) : void
Append_Bool_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_Byte ( string original, byte value, string expected ) : void
Append_Byte_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_Char ( string original, char value, int repeatCount, string expected ) : void
Append_CharArray ( string original, char value, int startIndex, int charCount, string expected ) : void
Append_CharArray_Invalid ( ) : void
Append_CharPointer ( string original, char charArray, int valueCount, string expected ) : void
Append_CharPointer_Invalid ( ) : void
Append_Char_Invalid ( ) : void
Append_Decimal ( string original, double doubleValue, string expected ) : void
Append_Decimal_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_Double ( string original, double value, string expected ) : void
Append_Double_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_Float ( string original, float value, string expected ) : void
Append_Float_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_Int ( string original, int value, string expected ) : void
Append_Int_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_Long ( string original, long value, string expected ) : void
Append_Long_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_Object ( string original, object value, string expected ) : void
Append_Object_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_SByte ( string original, sbyte value, string expected ) : void
Append_SByte_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_Short ( string original, short value, string expected ) : void
Append_Short_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_String ( string original, string value, int startIndex, int count, string expected ) : void
Append_String_Invalid ( ) : void
Append_UInt ( string original, uint value, string expected ) : void
Append_UInt_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_ULong ( string original, ulong value, string expected ) : void
Append_ULong_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Append_UShort ( string original, ushort value, string expected ) : void
Append_UShort_NoSpareCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Capacity_Get_Set ( ) : void
Capacity_Set_Invalid_ThrowsArgumentOutOfRangeException ( ) : void
Clear ( ) : void
CopyTo ( string value, int sourceIndex, char destination, int destinationIndex, int count, char expected ) : void
CopyTo_Invalid ( ) : void
CopyTo_StringBuilderWithMultipleChunks ( ) : void
Ctor_Empty ( ) : void
Ctor_Int ( ) : void
Ctor_Int_Int ( ) : void
Ctor_Int_Int_Invalid ( ) : void
Ctor_Int_NegativeCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Ctor_String ( string value ) : void
Ctor_String_Int ( string value ) : void
Ctor_String_Int_Int_Int ( string value, int startIndex, int length ) : void
Ctor_String_Int_Int_Int_Invalid ( ) : void
Ctor_String_Int_NegativeCapacity_ThrowsArgumentOutOfRangeException ( ) : void
EnsureCapacity ( ) : void
EnsureCapacity_InvalidCapacity_ThrowsArgumentOutOfRangeException ( ) : void
Equals ( StringBuilder sb1, StringBuilder sb2, bool expected ) : void
Insert_Bool ( string original, int index, bool value, string expected ) : void
Insert_Bool_Invalid ( ) : void
Insert_Byte ( string original, int index, byte value, string expected ) : void
Insert_Byte_Invalid ( ) : void
Insert_Char ( string original, int index, char value, string expected ) : void
Insert_CharArray ( string original, int index, char value, int startIndex, int charCount, string expected ) : void
Insert_CharArray_Invalid ( ) : void
Insert_Char_Invalid ( ) : void
Insert_Decimal ( string original, int index, double doubleValue, string expected ) : void
Insert_Decimal_Invalid ( ) : void
Insert_Double ( string original, int index, double value, string expected ) : void
Insert_Double_Invalid ( ) : void
Insert_Float ( string original, int index, float value, string expected ) : void
Insert_Float_Invalid ( ) : void
Insert_Int ( string original, int index, int value, string expected ) : void
Insert_Int_Invalid ( ) : void
Insert_Long ( string original, int index, long value, string expected ) : void
Insert_Long_Invalid ( ) : void
Insert_Object ( string original, int index, object value, string expected ) : void
Insert_Object_Invalid ( ) : void
Insert_SByte ( string original, int index, sbyte value, string expected ) : void
Insert_SByte_Invalid ( ) : void
Insert_Short ( string original, int index, short value, string expected ) : void
Insert_Short_Invalid ( ) : void
Insert_String_Count ( string original, int index, string value, int count, string expected ) : void
Insert_String_Count_Invalid ( ) : void
Insert_UInt ( string original, int index, uint value, string expected ) : void
Insert_UInt_Invalid ( ) : void
Insert_ULong ( string original, int index, ulong value, string expected ) : void
Insert_ULong_Invalid ( ) : void
Insert_UShort ( string original, int index, ushort value, string expected ) : void
Insert_UShort_Invalid ( ) : void
Item_Get_Set ( ) : void
Item_Get_Set_InvalidIndex ( ) : void
Length_Get_Set ( ) : void
Length_Set_InvalidValue_ThrowsArgumentOutOfRangeException ( ) : void
Remove ( string value, int startIndex, int length, string expected ) : void
Remove_Invalid ( ) : void
Remove_StringBuilderWithMultipleChunks ( int startIndex, int count, string expected ) : void
Replace_Char ( string value, char oldChar, char newChar, int startIndex, int count, string expected ) : void
Replace_Char_Invalid ( ) : void
Replace_Char_StringBuilderWithMultipleChunks ( ) : void
Replace_String ( string value, string oldValue, string newValue, int startIndex, int count, string expected ) : void
Replace_String_Invalid ( ) : void
Replace_String_StringBuilderWithMultipleChunks ( ) : void
Replace_String_StringBuilderWithMultipleChunks_LongString ( ) : void
Replace_String_StringBuilderWithMultipleChunks_WholeString ( ) : void
StringBuilderWithMultipleChunks ( ) : StringBuilder
ToString ( string value, int startIndex, int length, string expected ) : void
ToString_Invalid ( ) : void
ToString_StringBuilderWithMultipleChunks ( ) : void

Method Details

AppendFormat_TestData() public static method

public static AppendFormat_TestData ( ) : IEnumerable
return IEnumerable

AppendLine_TestData() public static method

public static AppendLine_TestData ( ) : IEnumerable
return IEnumerable

Equals_TestData() public static method

public static Equals_TestData ( ) : IEnumerable
return IEnumerable