Beispiel #1
0
    public void AddRotation()
    {
        //Arrange
        Vector3 startRotation = Vector3.right * 180;
        Vector3 addRotation   = Vector3.right * 90;

        entity.SetRotation(startRotation);

        //Act
        entity.AddRotation(addRotation);

        //Assert
        Assert.AreEqual(startRotation + addRotation, entity.GetEulerRotation());
    }