如何在表中传递空格(specflow场景)?

Rom*_*ats 7 specflow

如何在表中传递空格?

Background:
    Given the following books
        |Author         |(here several spaces)Title(here several spaces)|
Run Code Online (Sandbox Code Playgroud)

per*_*ist 11

我会这样做:

Given the following books
| Author              | Title               |
| "J. K. Rowling"     | "Harry P     "      |
| " Isaac Asimov   "  | "Robots and Empire" |
Run Code Online (Sandbox Code Playgroud)

然后你的绑定可以剥离引号(如果存在),但保留空格.

我认为这比之后添加空格的想法更为可取,因为这不是人类可读的 - 引用会使人类(利益相关者/编码人员)可以阅读它们.