This project is read-only.

How to test conditional choices in XAT

Sep 2, 2013 at 2:04 PM
I have an action that takes 2 parameters; EntityA and EntityB.
The choices for the second parameter gets filtered by the selection of the first parameter.
I can't seem to figure out how to assert this in a XAT.
Is it possible?
Sep 2, 2013 at 4:37 PM
See I think this is really the same point i.e. I don't think XAT can yet test this.
Sep 4, 2013 at 7:33 PM
Ok. I think one simple way to implement this would be to create an overload of GetChoices() into which one can pass the parameter dependent upon.
var firstParamSelection = action.Parameters[0].GetChoices().First();
var secondParamSelection = action.Parameters[1].GetChoices(firstParamSelection).First();