Class FastBufferReaderTests
Inheritance
FastBufferReaderTests
Syntax
public class FastBufferReaderTests : BaseFastBufferReaderWriterTest
Methods
GivenFastBufferReaderInitializedFromFastBufferWriterContainingValue_WhenCallingToArray_ReturnedArrayMatchesContentOfWriter()
Declaration
public void GivenFastBufferReaderInitializedFromFastBufferWriterContainingValue_WhenCallingToArray_ReturnedArrayMatchesContentOfWriter()
GivenFastBufferWriterContainingValue_WhenReadingArrayOfUnmanagedElementType_ValueMatchesWhatWasWritten(Type, BaseFastBufferReaderWriterTest.WriteType)
Declaration
public void GivenFastBufferWriterContainingValue_WhenReadingArrayOfUnmanagedElementType_ValueMatchesWhatWasWritten(Type testType, BaseFastBufferReaderWriterTest.WriteType writeType)
Parameters
GivenFastBufferWriterContainingValue_WhenReadingPartialValue_ValueMatchesWhatWasWritten(Int32, Int32)
Declaration
public void GivenFastBufferWriterContainingValue_WhenReadingPartialValue_ValueMatchesWhatWasWritten(int count, int offset)
Parameters
GivenFastBufferWriterContainingValue_WhenReadingString_ValueMatchesWhatWasWritten(Boolean, BaseFastBufferReaderWriterTest.WriteType)
Declaration
public void GivenFastBufferWriterContainingValue_WhenReadingString_ValueMatchesWhatWasWritten(bool oneByteChars, BaseFastBufferReaderWriterTest.WriteType writeType)
Parameters
GivenFastBufferWriterContainingValue_WhenReadingUnmanagedType_ValueMatchesWhatWasWritten(Type, BaseFastBufferReaderWriterTest.WriteType)
Declaration
public void GivenFastBufferWriterContainingValue_WhenReadingUnmanagedType_ValueMatchesWhatWasWritten(Type testType, BaseFastBufferReaderWriterTest.WriteType writeType)
Parameters
RunFixedStringTest<T>(T, Int32, BaseFastBufferReaderWriterTest.WriteType)
Declaration
public void RunFixedStringTest<T>(T fixedStringValue, int numBytesWritten, BaseFastBufferReaderWriterTest.WriteType writeType)
where T : struct, INativeList<byte>, IUTF8Bytes
Parameters
Type Parameters
RunTypeArrayTest<T>(T[])
Declaration
protected override void RunTypeArrayTest<T>(T[] valueToTest)
where T : struct
Parameters
Type |
Name |
Description |
T[] |
valueToTest |
|
Type Parameters
Overrides
Unity.Netcode.EditorTests.BaseFastBufferReaderWriterTest.RunTypeArrayTest<T>(T[])
RunTypeArrayTestSafe<T>(T[])
Declaration
protected override void RunTypeArrayTestSafe<T>(T[] valueToTest)
where T : struct
Parameters
Type |
Name |
Description |
T[] |
valueToTest |
|
Type Parameters
Overrides
Unity.Netcode.EditorTests.BaseFastBufferReaderWriterTest.RunTypeArrayTestSafe<T>(T[])
RunTypeTest<T>(T)
Declaration
protected override void RunTypeTest<T>(T valueToTest)
where T : struct
Parameters
Type |
Name |
Description |
T |
valueToTest |
|
Type Parameters
Overrides
Unity.Netcode.EditorTests.BaseFastBufferReaderWriterTest.RunTypeTest<T>(T)
RunTypeTestSafe<T>(T)
Declaration
protected override void RunTypeTestSafe<T>(T valueToTest)
where T : struct
Parameters
Type |
Name |
Description |
T |
valueToTest |
|
Type Parameters
Overrides
Unity.Netcode.EditorTests.BaseFastBufferReaderWriterTest.RunTypeTestSafe<T>(T)
WhenCallingReadByteAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
Declaration
public void WhenCallingReadByteAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
WhenCallingReadByteDuringBitwiseContext_InvalidOperationExceptionIsThrown()
Declaration
public void WhenCallingReadByteDuringBitwiseContext_InvalidOperationExceptionIsThrown()
WhenCallingReadBytePastBoundaryMarkedByTryBeginWrite_OverflowExceptionIsThrown()
Declaration
public void WhenCallingReadBytePastBoundaryMarkedByTryBeginWrite_OverflowExceptionIsThrown()
WhenCallingReadByteSafeAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
Declaration
public void WhenCallingReadByteSafeAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
WhenCallingReadByteSafeDuringBitwiseContext_InvalidOperationExceptionIsThrown()
Declaration
public void WhenCallingReadByteSafeDuringBitwiseContext_InvalidOperationExceptionIsThrown()
WhenCallingReadBytesAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
Declaration
public void WhenCallingReadBytesAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
WhenCallingReadBytesDuringBitwiseContext_InvalidOperationExceptionIsThrown()
Declaration
public void WhenCallingReadBytesDuringBitwiseContext_InvalidOperationExceptionIsThrown()
WhenCallingReadBytesSafeAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
Declaration
public void WhenCallingReadBytesSafeAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
WhenCallingReadBytesSafeDuringBitwiseContext_InvalidOperationExceptionIsThrown()
Declaration
public void WhenCallingReadBytesSafeDuringBitwiseContext_InvalidOperationExceptionIsThrown()
WhenCallingReadBytesWithoutCallingTryBeingReadFirst_OverflowExceptionIsThrown()
Declaration
public void WhenCallingReadBytesWithoutCallingTryBeingReadFirst_OverflowExceptionIsThrown()
WhenCallingReadByteWithoutCallingTryBeingReadFirst_OverflowExceptionIsThrown()
Declaration
public void WhenCallingReadByteWithoutCallingTryBeingReadFirst_OverflowExceptionIsThrown()
WhenCallingReadValueAfterCallingTryBeginWriteWithTooFewBytes_OverflowExceptionIsThrown()
Declaration
public void WhenCallingReadValueAfterCallingTryBeginWriteWithTooFewBytes_OverflowExceptionIsThrown()
WhenCallingReadValueSafeWithByteArrayAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
Declaration
public void WhenCallingReadValueSafeWithByteArrayAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
WhenCallingReadValueSafeWithByteArrayDuringBitwiseContext_InvalidOperationExceptionIsThrown()
Declaration
public void WhenCallingReadValueSafeWithByteArrayDuringBitwiseContext_InvalidOperationExceptionIsThrown()
WhenCallingReadValueSafeWithStringAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
Declaration
public void WhenCallingReadValueSafeWithStringAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
WhenCallingReadValueSafeWithStringDuringBitwiseContext_InvalidOperationExceptionIsThrown()
Declaration
public void WhenCallingReadValueSafeWithStringDuringBitwiseContext_InvalidOperationExceptionIsThrown()
WhenCallingReadValueSafeWithUnmanagedTypeAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
Declaration
public void WhenCallingReadValueSafeWithUnmanagedTypeAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
WhenCallingReadValueSafeWithUnmanagedTypeDuringBitwiseContext_InvalidOperationExceptionIsThrown()
Declaration
public void WhenCallingReadValueSafeWithUnmanagedTypeDuringBitwiseContext_InvalidOperationExceptionIsThrown()
WhenCallingReadValueWithByteArrayAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
Declaration
public void WhenCallingReadValueWithByteArrayAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
WhenCallingReadValueWithByteArrayDuringBitwiseContext_InvalidOperationExceptionIsThrown()
Declaration
public void WhenCallingReadValueWithByteArrayDuringBitwiseContext_InvalidOperationExceptionIsThrown()
WhenCallingReadValueWithByteArrayWithoutCallingTryBeingReadFirst_OverflowExceptionIsThrown()
Declaration
public void WhenCallingReadValueWithByteArrayWithoutCallingTryBeingReadFirst_OverflowExceptionIsThrown()
WhenCallingReadValueWithStringAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
Declaration
public void WhenCallingReadValueWithStringAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
WhenCallingReadValueWithStringDuringBitwiseContext_InvalidOperationExceptionIsThrown()
Declaration
public void WhenCallingReadValueWithStringDuringBitwiseContext_InvalidOperationExceptionIsThrown()
WhenCallingReadValueWithStringWithoutCallingTryBeingReadFirst_OverflowExceptionIsThrown()
Declaration
public void WhenCallingReadValueWithStringWithoutCallingTryBeingReadFirst_OverflowExceptionIsThrown()
WhenCallingReadValueWithUnmanagedTypeAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
Declaration
public void WhenCallingReadValueWithUnmanagedTypeAfterExitingBitwiseContext_InvalidOperationExceptionIsNotThrown()
WhenCallingReadValueWithUnmanagedTypeDuringBitwiseContext_InvalidOperationExceptionIsThrown()
Declaration
public void WhenCallingReadValueWithUnmanagedTypeDuringBitwiseContext_InvalidOperationExceptionIsThrown()
WhenCallingReadValueWithUnmanagedTypeWithoutCallingTryBeingReadFirst_OverflowExceptionIsThrown()
Declaration
public void WhenCallingReadValueWithUnmanagedTypeWithoutCallingTryBeingReadFirst_OverflowExceptionIsThrown()
WhenCallingTryBeginRead_TheAllowedReadPositionIsMarkedRelativeToCurrentPosition()
Declaration
public void WhenCallingTryBeginRead_TheAllowedReadPositionIsMarkedRelativeToCurrentPosition()
WhenCallingTryBeginReadInternal_AllowedReadPositionDoesNotMoveBackward()
Declaration
public void WhenCallingTryBeginReadInternal_AllowedReadPositionDoesNotMoveBackward()
WhenCreatingAReaderFromAnEmptyArray_LengthIsZero()
Declaration
public void WhenCreatingAReaderFromAnEmptyArray_LengthIsZero()
WhenCreatingAReaderFromAnEmptyArraySegment_LengthIsZero()
Declaration
public void WhenCreatingAReaderFromAnEmptyArraySegment_LengthIsZero()
WhenCreatingAReaderFromAnEmptyBuffer_LengthIsZero()
Declaration
public void WhenCreatingAReaderFromAnEmptyBuffer_LengthIsZero()
WhenCreatingAReaderFromAnEmptyFastBufferWriter_LengthIsZero()
Declaration
public void WhenCreatingAReaderFromAnEmptyFastBufferWriter_LengthIsZero()
WhenCreatingAReaderFromAnEmptyNativeArray_LengthIsZero()
Declaration
public void WhenCreatingAReaderFromAnEmptyNativeArray_LengthIsZero()
WhenCreatingNewFastBufferReader_IsInitializedIsTrue()
Declaration
public void WhenCreatingNewFastBufferReader_IsInitializedIsTrue()
WhenDisposingFastBufferReader_IsInitializedIsFalse()
Declaration
public void WhenDisposingFastBufferReader_IsInitializedIsFalse()
WhenReadingAfterSeeking_TheNewReadComesFromTheCorrectPosition()
Declaration
public void WhenReadingAfterSeeking_TheNewReadComesFromTheCorrectPosition()
WhenReadingFixedString128Bytes_ValueIsReadCorrectly(Int32, BaseFastBufferReaderWriterTest.WriteType)
Declaration
public void WhenReadingFixedString128Bytes_ValueIsReadCorrectly(int numBytesWritten, BaseFastBufferReaderWriterTest.WriteType writeType)
Parameters
WhenReadingFixedString32Bytes_ValueIsReadCorrectly(Int32, BaseFastBufferReaderWriterTest.WriteType)
Declaration
public void WhenReadingFixedString32Bytes_ValueIsReadCorrectly(int numBytesWritten, BaseFastBufferReaderWriterTest.WriteType writeType)
Parameters
WhenReadingFixedString4096Bytes_ValueIsReadCorrectly(Int32, BaseFastBufferReaderWriterTest.WriteType)
Declaration
public void WhenReadingFixedString4096Bytes_ValueIsReadCorrectly(int numBytesWritten, BaseFastBufferReaderWriterTest.WriteType writeType)
Parameters
WhenReadingFixedString512Bytes_ValueIsReadCorrectly(Int32, BaseFastBufferReaderWriterTest.WriteType)
Declaration
public void WhenReadingFixedString512Bytes_ValueIsReadCorrectly(int numBytesWritten, BaseFastBufferReaderWriterTest.WriteType writeType)
Parameters
WhenReadingFixedString64Bytes_ValueIsReadCorrectly(Int32, BaseFastBufferReaderWriterTest.WriteType)
Declaration
public void WhenReadingFixedString64Bytes_ValueIsReadCorrectly(int numBytesWritten, BaseFastBufferReaderWriterTest.WriteType writeType)
Parameters
WhenUsingDefaultFastBufferReader_IsInitializedIsFalse()
Declaration
public void WhenUsingDefaultFastBufferReader_IsInitializedIsFalse()