Beispiel #1
0
        public void GetComponentInHierarchyTest_ComponentInParet_IncludeInactive_SetActive()
        {
            GetComponentInHierarchyTester tester = Setup(incluneInactive: true, componentInParent: true, setActive: true);
            TestComponent result = tester.Run();

            Assert.NotNull(result);
        }
Beispiel #2
0
        public void GetComponentInHierarchyTest_ComponentInParet_DontIncludeInactive_SetInactive()
        {
            GetComponentInHierarchyTester tester = Setup(false, true, false);
            TestComponent result = tester.Run();

            Assert.IsNull(result);
        }
Beispiel #3
0
        public void GetComponentInHierarchyTest_ComponentInChild_IncludeInactive_SetInactive()
        {
            GetComponentInHierarchyTester tester = Setup(true, false, false);
            TestComponent result = tester.Run();

            Assert.NotNull(result);
        }