Specflow step argument transformation on table cell contents with CreateInstance

前端 未结 2 1147
醉梦人生
醉梦人生 2021-01-19 14:48

Has anyone solved the riddle of how to apply SpecFlow Step Argument Transformations to cells in a table, in conjunction with the SpecFlow.Assist CreateInstance/CreateSet? (

2条回答
  •  伪装坚强ぢ
    2021-01-19 15:27

    I don't think what you want is implemented currently, but theoretically I think it could be implemented. You can probably implement a new, enhanced DateTimeValueRetriever yourself which checks to see if the string is parseable as a datetime first and if not checks if any of the [StepArgumentTransformation] methods can parse it, and then replace the current DateTimeValueRetriever with your enhanced one. Then you could submit a pr offering your new version as an enhancement to the existing version, and see what the appetite is.

提交回复
热议问题