Class UnityHierarchyUtilsSceneTests
Tests for the scene-scoped helpers of UnityHierarchyUtils (GetSceneRoots / FindInSceneWithTag / FindInScene). Scene-wide queries are made deterministic by isolating objects in a freshly created scene and querying it through the Scene-parameter overloads; the active-scene overloads are covered with Contains-style assertions that tolerate unrelated objects already present in the editor scene.
Inherited Members
Namespace: Serenity.UnityGlobal.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class UnityHierarchyUtilsSceneTests
Constructors
UnityHierarchyUtilsSceneTests()
Declaration
public UnityHierarchyUtilsSceneTests()
Methods
FindAllInSceneWithTag_NoArg_IncludesTaggedActiveSceneObject()
Declaration
public void FindAllInSceneWithTag_NoArg_IncludesTaggedActiveSceneObject()
FindAllInSceneWithTag_ReturnsEveryTaggedObject_AcrossRoots()
Declaration
public void FindAllInSceneWithTag_ReturnsEveryTaggedObject_AcrossRoots()
FindAllInScene_NoArg_FindsComponentInActiveScene()
Declaration
public void FindAllInScene_NoArg_FindsComponentInActiveScene()
FindAllInScene_ReturnsEveryComponent_AcrossRoots()
Declaration
public void FindAllInScene_ReturnsEveryComponent_AcrossRoots()
FindInSceneWithTag_NoMatch_ReturnsNull()
Declaration
public void FindInSceneWithTag_NoMatch_ReturnsNull()
FindInSceneWithTag_ReturnsTaggedDescendant_AcrossRoots()
Declaration
public void FindInSceneWithTag_ReturnsTaggedDescendant_AcrossRoots()
FindInScene_NoComponent_ReturnsNull()
Declaration
public void FindInScene_NoComponent_ReturnsNull()
FindInScene_ReturnsFirstComponent_AcrossRoots()
Declaration
public void FindInScene_ReturnsFirstComponent_AcrossRoots()
GetSceneRoots_InvalidScene_ReturnsEmpty()
Declaration
public void GetSceneRoots_InvalidScene_ReturnsEmpty()
GetSceneRoots_NoArg_IncludesActiveSceneRoot()
Declaration
public void GetSceneRoots_NoArg_IncludesActiveSceneRoot()
GetSceneRoots_ReturnsOnlyRoots_NotChildren()
Declaration
public void GetSceneRoots_ReturnsOnlyRoots_NotChildren()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()