Returns whether the other Action is structurally equal to this Action.
Returns whether the other Action is structurally equal to this Action.
the other Action to campare this Action to.
Exit() structurallyEquals Exit() //returns true Exit() structurallyEquals Send() //returns false Send("AA") structurallyEquals Send("BB") //returns true Returning(5) structurallyEquals Returning { complexFunctionReturningAnInt } //returns true Returning("AA") structurallyEquals Returning(5) //won't compile
We cannot test that an Action is equal to another Action because some actions return a value by invoking a function. And equality on a function is not defined. So in other to extract some useful information about the "equality" of two actions we created this function.