Class SerenityPackageContentRelocatorTests
EditMode tests for Serenity.Global.Infrastructure.Editor.SerenityPackageContentRelocator. The fixture lives under a throwaway folder nested inside Serenity.Global.Infrastructure.Editor.SerenityEditorPaths.AssetsRoot — a real shipped asset cannot stand in here since these tests actually move (and sometimes deliberately fail to move) it. Every root is owned by a ScratchAssetFixture, wiped in both SetUp() and TearDown(); every fixture's GUID is captured the moment it is created (stable across a later move) so TearDown() can remove any Addressables entry before the underlying asset is deleted, and then assert — loudly, not silently — that nothing survives into the next test.
Inherited Members
Namespace: Serenity.UnityGlobal.Tests.Editor
Assembly: Tests.Editor.dll
Syntax
public class SerenityPackageContentRelocatorTests
Constructors
SerenityPackageContentRelocatorTests()
Declaration
public SerenityPackageContentRelocatorTests()
Methods
MoveIntoFolder_DestinationFileAlreadyExists_ThrowsInvalidOperationException()
Declaration
public void MoveIntoFolder_DestinationFileAlreadyExists_ThrowsInvalidOperationException()
MoveIntoFolder_DestinationRecentlyDeleted_Moves()
Declaration
public void MoveIntoFolder_DestinationRecentlyDeleted_Moves()
MoveIntoFolder_MovesTheAssetAndKeepsItsGuid()
Declaration
public void MoveIntoFolder_MovesTheAssetAndKeepsItsGuid()
MoveIntoFolder_PathOutsidePackageContent_ThrowsArgumentException()
Declaration
public void MoveIntoFolder_PathOutsidePackageContent_ThrowsArgumentException()
MoveIntoFolder_UnreachableDestination_ThrowsAndTracksNothing()
Declaration
public void MoveIntoFolder_UnreachableDestination_ThrowsAndTracksNothing()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()