Class SerenityAssetIdLookupTests
Tests for the two by-Id passes behind every creation engine's duplicate and near-miss reporting. 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.
Inherited Members
Namespace: Serenity.UnityGlobal.Tests.Editor
Assembly: Tests.Editor.dll
Syntax
public class SerenityAssetIdLookupTests
Constructors
SerenityAssetIdLookupTests()
Declaration
public SerenityAssetIdLookupTests()
Methods
FindExistingByIdInFolder_CaseVariantOnly_ResolvesNothingBecauseIdsAreCaseSensitive()
Declaration
public void FindExistingByIdInFolder_CaseVariantOnly_ResolvesNothingBecauseIdsAreCaseSensitive()
FindIdMatchesAnywhereExcept_ADifferentAssetCarryingTheSameId_IsReported()
Declaration
public void FindIdMatchesAnywhereExcept_ADifferentAssetCarryingTheSameId_IsReported()
FindIdMatchesAnywhereExcept_AnOrdinalMatch_IsNeverReportedAsANearMiss()
Declaration
public void FindIdMatchesAnywhereExcept_AnOrdinalMatch_IsNeverReportedAsANearMiss()
FindIdMatchesAnywhereExcept_DefaultExclusion_ExcludesNothing()
Declaration
public void FindIdMatchesAnywhereExcept_DefaultExclusion_ExcludesNothing()
FindIdMatchesAnywhereExcept_DuplicateAndNearMissInDifferentFolders_ReportsBoth()
Declaration
public void FindIdMatchesAnywhereExcept_DuplicateAndNearMissInDifferentFolders_ReportsBoth()
FindIdMatchesAnywhereExcept_EmptyId_MatchesAnEmptyIdExactlyAndNeverAsANearMiss()
Pins the one asymmetry the collapsed pass relies on: unlike the in-folder pass it does NOT bail out on an empty Id, because an asset whose own Id is empty is a legitimate exact match and callers pass their Id unguarded. The case-variant role still yields nothing, which is why dropping the old empty-Id guard on the near-miss search could not change any result.
Declaration
public void FindIdMatchesAnywhereExcept_EmptyId_MatchesAnEmptyIdExactlyAndNeverAsANearMiss()
FindIdMatchesAnywhereExcept_NoSearchFolder_ScansTheWholeProject()
Declaration
public void FindIdMatchesAnywhereExcept_NoSearchFolder_ScansTheWholeProject()
FindIdMatchesAnywhereExcept_SearchFolderGiven_IgnoresAssetsOutsideIt()
Declaration
public void FindIdMatchesAnywhereExcept_SearchFolderGiven_IgnoresAssetsOutsideIt()
FindIdMatchesAnywhereExcept_TheAssetTheInFolderPassAlreadyResolved_IsNotReportedAgain()
Declaration
public void FindIdMatchesAnywhereExcept_TheAssetTheInFolderPassAlreadyResolved_IsNotReportedAgain()
FindIdMatchesAnywhereExcept_TheCaseVariantAlreadyReportedInFolder_IsSkippedButAnotherIsReported()
Declaration
public void FindIdMatchesAnywhereExcept_TheCaseVariantAlreadyReportedInFolder_IsSkippedButAnotherIsReported()
FindIdMatchesInFolder_CaseVariantWithoutAnExactMatch_IsReported()
Declaration
public void FindIdMatchesInFolder_CaseVariantWithoutAnExactMatch_IsReported()
FindIdMatchesInFolder_EmptyId_MatchesNothing()
Declaration
public void FindIdMatchesInFolder_EmptyId_MatchesNothing()
FindIdMatchesInFolder_ExactMatchAndCaseVariantBothPresent_ReportsOnlyTheExactMatch()
Declaration
public void FindIdMatchesInFolder_ExactMatchAndCaseVariantBothPresent_ReportsOnlyTheExactMatch()
FindIdMatchesInFolder_ExactMatchInASubfolder_IsReportedBecauseTheScanRecurses()
Declaration
public void FindIdMatchesInFolder_ExactMatchInASubfolder_IsReportedBecauseTheScanRecurses()
FindIdMatchesInFolder_ExactMatchInTheFolder_IsReported()
Declaration
public void FindIdMatchesInFolder_ExactMatchInTheFolder_IsReported()
FindIdMatchesInFolder_FolderThatDoesNotExist_MatchesNothing()
Declaration
public void FindIdMatchesInFolder_FolderThatDoesNotExist_MatchesNothing()
FindIdMatchesInFolder_NullId_MatchesNothing()
Declaration
public void FindIdMatchesInFolder_NullId_MatchesNothing()
FindIdMatchesInFolder_SeveralCaseVariants_ReportsOneOfThem()
Declaration
public void FindIdMatchesInFolder_SeveralCaseVariants_ReportsOneOfThem()
FindIdMatchesInFolder_UnrelatedIdsOnly_MatchesNothing()
Declaration
public void FindIdMatchesInFolder_UnrelatedIdsOnly_MatchesNothing()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()