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

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

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

            Assert.NotNull(result);
        }