Class UnityPackageTarArchiveUtilsTests
Pure tests for Serenity.Editor.PackageBootstrapper.UnityPackageTarArchiveUtils. No file I/O; streams are in-memory.
Inherited Members
Namespace: Serenity.PackageBootstrapper.Tests.Editor
Assembly: Tests.Editor.dll
Syntax
public class UnityPackageTarArchiveUtilsTests
Constructors
UnityPackageTarArchiveUtilsTests()
Declaration
public UnityPackageTarArchiveUtilsTests()
Methods
BuildEndOfArchiveMarker_IsTwoZeroBlocks()
Declaration
public void BuildEndOfArchiveMarker_IsTwoZeroBlocks()
BuildEntryBytes_ContentExactMultipleOfBlockSize_AddsNoExtraPadding()
Declaration
public void BuildEntryBytes_ContentExactMultipleOfBlockSize_AddsNoExtraPadding()
BuildEntryBytes_ContentShorterThanOneBlock_IsZeroPaddedToBlockSize()
Declaration
public void BuildEntryBytes_ContentShorterThanOneBlock_IsZeroPaddedToBlockSize()
BuildHeaderBlock_IsExactlyOneBlock()
Declaration
public void BuildHeaderBlock_IsExactlyOneBlock()
BuildHeaderBlock_KnownVector_MatchesIndependentlyComputedChecksumAndMagic()
Declaration
public void BuildHeaderBlock_KnownVector_MatchesIndependentlyComputedChecksumAndMagic()
BuildHeaderBlock_RoundTrip_NameSizeAndChecksumParseBack()
Declaration
public void BuildHeaderBlock_RoundTrip_NameSizeAndChecksumParseBack()
FindArchiveContentEndOffset_EntryContentEndsInAnAllZeroBlock_ContentIsNotMistakenForPadding()
Declaration
public void FindArchiveContentEndOffset_EntryContentEndsInAnAllZeroBlock_ContentIsNotMistakenForPadding()
FindArchiveContentEndOffset_ExtraBlockingFactorPaddingBeyondEndMarker_IsExcluded()
Declaration
public void FindArchiveContentEndOffset_ExtraBlockingFactorPaddingBeyondEndMarker_IsExcluded()
FindArchiveContentEndOffset_MultipleEntries_SkipsEachOneByItsDeclaredSize()
Declaration
public void FindArchiveContentEndOffset_MultipleEntries_SkipsEachOneByItsDeclaredSize()
FindArchiveContentEndOffset_SingleEntryFollowedByEndMarker_StopsRightAfterTheEntry()
Declaration
public void FindArchiveContentEndOffset_SingleEntryFollowedByEndMarker_StopsRightAfterTheEntry()
IsValidHeader_AllZeroBlock_IsFalse()
Declaration
public void IsValidHeader_AllZeroBlock_IsFalse()
IsValidHeader_BuiltHeader_IsTrue()
Declaration
public void IsValidHeader_BuiltHeader_IsTrue()
IsValidHeader_HeaderWithTamperedByte_IsFalse()
Declaration
public void IsValidHeader_HeaderWithTamperedByte_IsFalse()
PaddedLength_ExactMultiple_ReturnsSameValue()
Declaration
public void PaddedLength_ExactMultiple_ReturnsSameValue()
PaddedLength_NotAMultiple_RoundsUpToNextBlock()
Declaration
public void PaddedLength_NotAMultiple_RoundsUpToNextBlock()