Class SerenityHealthCheckPrefabIdentityTests
The Health Check reads the Id and Guid of a prefab's own foundation components with the same
rules it applies to ScriptableObjects: empty is a Warning, a duplicate is an Error, a project-owned Id
shadowing a shipped one is Info. A component counts at the prefab that owns it — a nested prefab instance
repeats its source prefab's identity by construction, and a variant's inherited child component belongs to
the base. Every fixture is a real prefab on disk, because the scan is an AssetDatabase sweep.
Inherited Members
Namespace: Serenity.UnityValidation.Tests.Editor
Assembly: Serenity.UnityValidation.Tests.Editor.dll
Syntax
public class SerenityHealthCheckPrefabIdentityTests
Constructors
SerenityHealthCheckPrefabIdentityTests()
Declaration
public SerenityHealthCheckPrefabIdentityTests()
Methods
Run_ComponentAddedByTheOuterPrefabToANestedInstanceObject_CountsAtTheOuterPrefab()
Declaration
public void Run_ComponentAddedByTheOuterPrefabToANestedInstanceObject_CountsAtTheOuterPrefab()
Run_NestedPrefabInstanceRepeatingItsSourceIdentity_IsNotADuplicate()
Declaration
public void Run_NestedPrefabInstanceRepeatingItsSourceIdentity_IsNotADuplicate()
Run_PrefabChildComponentWithEmptyGuid_ReportsWarningNamingTheChildObjectPath()
Declaration
public void Run_PrefabChildComponentWithEmptyGuid_ReportsWarningNamingTheChildObjectPath()
Run_PrefabRootComponentWithEmptyId_ReportsWarningNamingThePrefabAndTheObject()
Declaration
public void Run_PrefabRootComponentWithEmptyId_ReportsWarningNamingThePrefabAndTheObject()
Run_ProjectPrefabCopyingAShippedPrefabGuid_ReportsError()
Declaration
public void Run_ProjectPrefabCopyingAShippedPrefabGuid_ReportsError()
Run_ProjectPrefabShadowingAShippedPrefabId_ReportsInfoNotError()
Declaration
public void Run_ProjectPrefabShadowingAShippedPrefabId_ReportsInfoNotError()
Run_TwoComponentsOfOnePrefabSharingAGuid_ReportsErrorNamingEachObjectPath()
Declaration
public void Run_TwoComponentsOfOnePrefabSharingAGuid_ReportsErrorNamingEachObjectPath()
Run_TwoPrefabsSharingAGuid_ReportsErrorNamingBothPrefabs()
Declaration
public void Run_TwoPrefabsSharingAGuid_ReportsErrorNamingBothPrefabs()
Run_TwoPrefabsSharingAnIdOfTheSameType_ReportsErrorNamingBothPrefabs()
Declaration
public void Run_TwoPrefabsSharingAnIdOfTheSameType_ReportsErrorNamingBothPrefabs()
Run_VariantInheritingAChildComponent_DoesNotCountItAgainstItsBase()
Declaration
public void Run_VariantInheritingAChildComponent_DoesNotCountItAgainstItsBase()
Run_VariantInheritingTheRootIdentityUnmodified_ReportsTheSharedGuidAgainstItsBase()
Declaration
public void Run_VariantInheritingTheRootIdentityUnmodified_ReportsTheSharedGuidAgainstItsBase()
Run_VariantOverridingTheRootIdentity_ReportsNothing()
Declaration
public void Run_VariantOverridingTheRootIdentity_ReportsNothing()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()