Class NetBufferTest
Inheritance
NetBufferTest
Syntax
public class NetBufferTest
Methods
AttemptToReadABunchOfBytesOutOfBufferBounds_OutOfRangeExceptionRaises()
Declaration
public void AttemptToReadABunchOfBytesOutOfBufferBounds_OutOfRangeExceptionRaises()
AttemptToReadByteOutOfBufferBounds_OutOfRangeExceptionRaises()
Declaration
public void AttemptToReadByteOutOfBufferBounds_OutOfRangeExceptionRaises()
BufferCreated_InitialParametersAreSet()
Declaration
public void BufferCreated_InitialParametersAreSet()
BufferCreatedFromArrayOfBytesHasTheSameLengthAsOriginalArray()
Declaration
public void BufferCreatedFromArrayOfBytesHasTheSameLengthAsOriginalArray()
BufferReferencesTheArrayAndDoesNotCopyItsValues()
Declaration
public void BufferReferencesTheArrayAndDoesNotCopyItsValues()
BufferSizeGrows_NewBufferLengthRoundedUp(Int32, Int32)
Declaration
public void BufferSizeGrows_NewBufferLengthRoundedUp(int length, int expectedLength)
Parameters
Type |
Name |
Description |
Int32 |
length |
|
Int32 |
expectedLength |
|
BufferSizeGrowsSeveralTimesUntilNewSizeCanHandleAllValuesToWrite(Int32, Int32)
Declaration
public void BufferSizeGrowsSeveralTimesUntilNewSizeCanHandleAllValuesToWrite(int length, int expectedLength)
Parameters
Type |
Name |
Description |
Int32 |
length |
|
Int32 |
expectedLength |
|
BunchOfBytesCanBeReadAtOnce()
Declaration
public void BunchOfBytesCanBeReadAtOnce()
CanReadOneByte()
Declaration
public void CanReadOneByte()
CanWriteABunchOfBytesAtOnce(Int32, UInt16)
Declaration
public void CanWriteABunchOfBytesAtOnce(int arraySize, ushort amountToWrite)
Parameters
Type |
Name |
Description |
Int32 |
arraySize |
|
UInt16 |
amountToWrite |
|
CanWriteAtOffset(UInt16, UInt16)
Declaration
public void CanWriteAtOffset(ushort offset, ushort count)
Parameters
CanWriteByte()
Declaration
public void CanWriteByte()
CanWriteEightBytes()
Declaration
public void CanWriteEightBytes()
CanWriteFourBytes()
Declaration
public void CanWriteFourBytes()
CanWriteTwoBytes()
Declaration
public void CanWriteTwoBytes()
Declaration
public void NewMemoryIsAllocated_ReferenceToOldArrayIsLost()
ReplaceFunctionReplacesInternalBufferWithProvidedOne()
Declaration
public void ReplaceFunctionReplacesInternalBufferWithProvidedOne()
SeekZeroMovesPositionToZero()
Declaration
public void SeekZeroMovesPositionToZero()
Setup()
Declaration
WriteBytesCopiesBytesIntoBufferFromCurrentPosition()
Declaration
public void WriteBytesCopiesBytesIntoBufferFromCurrentPosition()