public void FindObjectInScene_finds_top_level_object()
    {
        GameObject objectUnderTest = new GameObject("test obj");

        GameObject foundObject = SceneUtils.FindObjectInScene("test obj");

        Assert.AreSame(objectUnderTest, foundObject);
    }
    public void FindObjectInScene_finds_child_object()
    {
        GameObject objectUnderTest = new GameObject("test obj");
        GameObject childobject     = new GameObject("childObj");

        childobject.transform.parent = objectUnderTest.transform;

        GameObject foundObject = SceneUtils.FindObjectInScene("childObj");

        Assert.AreSame(childobject, foundObject);
    }
    public void FindObjectInScene_null_when_doesnt_exist()
    {
        GameObject objectUnderTest = new GameObject("test obj");
        GameObject childobject     = new GameObject("childObj");

        childobject.transform.parent = objectUnderTest.transform;

        GameObject foundObject = SceneUtils.FindObjectInScene("nonexist");

        LogAssert.Expect(LogType.Exception, ANY_STRING);
        Assert.IsNull(foundObject);
    }