Ejemplo n.º 1
0
    public IEnumerator WhenInstantiateObjectOfTypeFindNearestNeighbour_ThenPositionHandlerRegisterNewFindNearestNeighbour()
    {
        //Act
        FindNearestNeighbour findNearestNeighbour = Object.Instantiate(prefab);

        findNearestNeighbour.GetComponent <RandomMove>().Initialize(areaOfMove);
        yield return(0);

        //Asserts
        Assert.IsTrue(positionHandler.ItIsRegistered(findNearestNeighbour),
                      "do not register the instantiated FindNearestNeighbour");
    }