How to test conditional choices in XAT

Sep 2, 2013 at 1: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 3: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 6: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();