コード例 #1
0
    public IEnumerator Test_ObjectBase_GetComponent_Attribute()
    {
        GameObject      pObjectNew = new GameObject();
        CObjectBase_테스트 pTarget    = pObjectNew.AddComponent <CObjectBase_테스트>();

        pTarget.EventOnAwake();

        yield return(null);

        Assert.IsNotNull(pTarget.pGetComponent);
    }
コード例 #2
0
    public IEnumerator Test_ObjectBase_GetComponentInChildren_Attribute()
    {
        GameObject      pObjectNew     = new GameObject();
        CObjectBase_테스트 pTargetParents = pObjectNew.AddComponent <CObjectBase_테스트>();

        CObjectBase_테스트 pTarget = pObjectNew.AddComponent <CObjectBase_테스트>();

        pTarget.transform.SetParent(pTargetParents.transform);
        pTarget.EventOnAwake();

        yield return(null);

        Assert.IsNotNull(pTarget.pGetComponentParents);
    }