C# Class OpenStory.Common.IO.SafePacketReadingFixture

Inheritance: PacketReaderFixtureBase
Exibir arquivo Open project: shoftee/OpenStory

Private Properties

Property Type Description
FailingRead void
FailingReturningRead int
GracefullyFailsOnReadOperations void
ReturnsFalseAndDoesNotMovePosition void
Safe_Handling_Should_Call_FailureCallback void
Safe_Handling_Should_Call_ReadingCallback void
Safe_Handling_Should_Reset_Position_On_Failure_1 void
Safe_Handling_Should_Reset_Position_On_Failure_2 void
Safe_Handling_Should_Reset_Position_On_Failure_3 void
Safe_Handling_Should_Return_False_On_Failure void
Safe_Handling_Should_Return_True_On_Success_1 void
Safe_Handling_Should_Return_True_On_Success_2 void
Safe_Handling_Should_Return_Value_On_Failure void
Safe_Handling_Should_Return_Value_On_Success void
Safe_Handling_Should_Throw_When_Failure_Callback_Is_Null_1 void
Safe_Handling_Should_Throw_When_Failure_Callback_Is_Null_2 void
Safe_Handling_Should_Throw_When_Reading_Callback_Is_Null_1 void
Safe_Handling_Should_Throw_When_Reading_Callback_Is_Null_2 void
Safe_Handling_Should_Throw_When_Reading_Callback_Is_Null_3 void
Should_Return_False_On_Reading_In_Offset_Zero_Length_Segment void
Should_Return_False_On_Reading_In_Zero_Length_Segment void
TryReadBoolean_Does_Not_Move_Position_On_Failure void
TryReadBoolean_Should_Return_Correct_Values void
TryReadByte_Does_Not_Move_Position_On_Failure void
TryReadByte_Should_Return_Same_Bytes void
TryReadInt16_Does_Not_Move_Position_On_Failure void
TryReadInt16_Should_Read_In_LittleEndian void
TryReadInt32_Does_Not_Move_Position_On_Failure void
TryReadInt32_Should_Read_In_LittleEndian void
TryReadInt64_Does_Not_Move_Position_On_Failure void
TryReadInt64_Should_Read_In_LittleEndian void
TryReadLengthString_Does_Not_Move_Position_On_Failure void
TryReadLengthString_Should_Return_False_When_Data_Is_Missing void
TryReadLengthString_Should_Return_Same_String void
TryReadPaddedString_Does_Not_Move_Position_On_Failure void
TryReadPaddedString_Should_Return_False_When_Data_Is_Missing void
TryReadPaddedString_Should_Return_String_Without_Padding void
TryReadPaddedString_Should_Return_Strings_Shorter_Than_Padding void
TryReadPaddedString_Should_Throw_When_PadLength_Is_Non_Positive void
TryReadUInt16_Does_Not_Move_Position_On_Failure void
TryReadUInt16_Should_Read_In_LittleEndian void
TryReadUInt32_Does_Not_Move_Position_On_Failure void
TryReadUInt32_Should_Read_In_LittleEndian void
TryReadUInt64_Does_Not_Move_Position_On_Failure void
TryReadUInt64_Should_Read_In_LittleEndian void
TryRead_Does_Not_Move_Position_On_Failure void
TryRead_Should_Return_Same_Bytes void
TryRead_Should_Throw_When_Count_Is_Negative void
TrySkipTo_Should_Skip_To_Correct_Offset void
TrySkipTo_Should_Throw_When_Offset_Is_Before_Current_Position void
TrySkipTo_Should_Throw_When_Offset_Is_Before_Current_Position_In_Segment void
TrySkipTo_Should_Throw_When_Offset_Is_Negative void
TrySkipTo_Should_Throw_When_Offset_Is_Negative_In_Segment void
TrySkip_Should_Skip_Correct_Number_Of_Bytes void
TrySkip_Should_Throw_When_Count_Is_Negative void

Private Methods

Method Description
FailingRead ( IUnsafePacketReader reader ) : void
FailingReturningRead ( IUnsafePacketReader reader ) : int
GracefullyFailsOnReadOperations ( ISafePacketReader r, int skip, int skipToOffset, int padLength, int byteCount ) : void
ReturnsFalseAndDoesNotMovePosition ( PacketReader reader, bool>.Func action ) : void
Safe_Handling_Should_Call_FailureCallback ( ) : void
Safe_Handling_Should_Call_ReadingCallback ( ) : void
Safe_Handling_Should_Reset_Position_On_Failure_1 ( ) : void
Safe_Handling_Should_Reset_Position_On_Failure_2 ( ) : void
Safe_Handling_Should_Reset_Position_On_Failure_3 ( ) : void
Safe_Handling_Should_Return_False_On_Failure ( ) : void
Safe_Handling_Should_Return_True_On_Success_1 ( ) : void
Safe_Handling_Should_Return_True_On_Success_2 ( ) : void
Safe_Handling_Should_Return_Value_On_Failure ( ) : void
Safe_Handling_Should_Return_Value_On_Success ( ) : void
Safe_Handling_Should_Throw_When_Failure_Callback_Is_Null_1 ( ) : void
Safe_Handling_Should_Throw_When_Failure_Callback_Is_Null_2 ( ) : void
Safe_Handling_Should_Throw_When_Reading_Callback_Is_Null_1 ( ) : void
Safe_Handling_Should_Throw_When_Reading_Callback_Is_Null_2 ( ) : void
Safe_Handling_Should_Throw_When_Reading_Callback_Is_Null_3 ( ) : void
Should_Return_False_On_Reading_In_Offset_Zero_Length_Segment ( ) : void
Should_Return_False_On_Reading_In_Zero_Length_Segment ( ) : void
TryReadBoolean_Does_Not_Move_Position_On_Failure ( ) : void
TryReadBoolean_Should_Return_Correct_Values ( ) : void
TryReadByte_Does_Not_Move_Position_On_Failure ( ) : void
TryReadByte_Should_Return_Same_Bytes ( ) : void
TryReadInt16_Does_Not_Move_Position_On_Failure ( ) : void
TryReadInt16_Should_Read_In_LittleEndian ( ) : void
TryReadInt32_Does_Not_Move_Position_On_Failure ( ) : void
TryReadInt32_Should_Read_In_LittleEndian ( ) : void
TryReadInt64_Does_Not_Move_Position_On_Failure ( ) : void
TryReadInt64_Should_Read_In_LittleEndian ( ) : void
TryReadLengthString_Does_Not_Move_Position_On_Failure ( ) : void
TryReadLengthString_Should_Return_False_When_Data_Is_Missing ( ) : void
TryReadLengthString_Should_Return_Same_String ( ) : void
TryReadPaddedString_Does_Not_Move_Position_On_Failure ( ) : void
TryReadPaddedString_Should_Return_False_When_Data_Is_Missing ( ) : void
TryReadPaddedString_Should_Return_String_Without_Padding ( ) : void
TryReadPaddedString_Should_Return_Strings_Shorter_Than_Padding ( ) : void
TryReadPaddedString_Should_Throw_When_PadLength_Is_Non_Positive ( int padding ) : void
TryReadUInt16_Does_Not_Move_Position_On_Failure ( ) : void
TryReadUInt16_Should_Read_In_LittleEndian ( ) : void
TryReadUInt32_Does_Not_Move_Position_On_Failure ( ) : void
TryReadUInt32_Should_Read_In_LittleEndian ( ) : void
TryReadUInt64_Does_Not_Move_Position_On_Failure ( ) : void
TryReadUInt64_Should_Read_In_LittleEndian ( ) : void
TryRead_Does_Not_Move_Position_On_Failure ( ) : void
TryRead_Should_Return_Same_Bytes ( ) : void
TryRead_Should_Throw_When_Count_Is_Negative ( ) : void
TrySkipTo_Should_Skip_To_Correct_Offset ( ) : void
TrySkipTo_Should_Throw_When_Offset_Is_Before_Current_Position ( ) : void
TrySkipTo_Should_Throw_When_Offset_Is_Before_Current_Position_In_Segment ( ) : void
TrySkipTo_Should_Throw_When_Offset_Is_Negative ( ) : void
TrySkipTo_Should_Throw_When_Offset_Is_Negative_In_Segment ( ) : void
TrySkip_Should_Skip_Correct_Number_Of_Bytes ( ) : void
TrySkip_Should_Throw_When_Count_Is_Negative ( ) : void