logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityDefaultAssetFolderTests

    Tests for Serenity.Global.Infrastructure.Editor.SerenityDefaultAssetFolder's majority-folder scan and its package-exclusion filter. Editor-only, and deliberately built on real assets on disk — the contract is about what UnityEditor.AssetDatabase queries return, which no in-memory double can stand in for. Mirrors the temp-folder SetUp/TearDown pattern of SerenityAssetIdLookupTests.

    Inheritance
    object
    SerenityDefaultAssetFolderTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityGlobal.Tests.Editor
    Assembly: Tests.Editor.dll
    Syntax
    public class SerenityDefaultAssetFolderTests

    Constructors

    SerenityDefaultAssetFolderTests()

    Declaration
    public SerenityDefaultAssetFolderTests()

    Methods

    OneTimeSetUp()

    Declaration
    public void OneTimeSetUp()

    OneTimeTearDown()

    Declaration
    public void OneTimeTearDown()

    ResolveFor_Fixtures_AreNeverPlacedDirectlyInTheScratchRoot()

    Declaration
    public void ResolveFor_Fixtures_AreNeverPlacedDirectlyInTheScratchRoot()

    ResolveFor_GenericOverload_AgreesWithTheTypeOverload()

    Declaration
    public void ResolveFor_GenericOverload_AgreesWithTheTypeOverload()

    ResolveFor_MajorityFolder_WinsOverAMinorityFolder()

    Declaration
    public void ResolveFor_MajorityFolder_WinsOverAMinorityFolder()

    ResolveFor_NoAssetsOfTheType_ReturnsTheConventionFolder()

    Declaration
    public void ResolveFor_NoAssetsOfTheType_ReturnsTheConventionFolder()

    ResolveFor_Result_AlwaysStartsWithAssetsAndIsNeverUnderThePackageRoot()

    Declaration
    public void ResolveFor_Result_AlwaysStartsWithAssetsAndIsNeverUnderThePackageRoot()

    ResolveFor_TiedFolders_ReturnsTheOrdinallyFirstFolder()

    Declaration
    public void ResolveFor_TiedFolders_ReturnsTheOrdinallyFirstFolder()

    ResolveFor_TypeOnlyShippedInsideThePackage_ReturnsTheConventionFolderInstead()

    Declaration
    public void ResolveFor_TypeOnlyShippedInsideThePackage_ReturnsTheConventionFolderInstead()

    SeedIfEmpty_PathAlreadyEmpty_SeedsFromTheResolver()

    Declaration
    public void SeedIfEmpty_PathAlreadyEmpty_SeedsFromTheResolver()

    SeedIfEmpty_PathAlreadySet_LeavesPathAndAssetUntouched()

    Declaration
    public void SeedIfEmpty_PathAlreadySet_LeavesPathAndAssetUntouched()

    SeedIfEmpty_ResolvedFolderDoesNotExistOnDisk_LeavesTheAssetNull()

    Declaration
    public void SeedIfEmpty_ResolvedFolderDoesNotExistOnDisk_LeavesTheAssetNull()

    SeedIfEmpty_ResolvedFolderExistsOnDisk_SetsTheAssetReference()

    Declaration
    public void SeedIfEmpty_ResolvedFolderExistsOnDisk_SetsTheAssetReference()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()
    In this article
    © 2026 Serenity. All Rights Reserved