NSubstitute收到字符串不匹配

时间:2011-10-11 10:25:40

标签: nsubstitute

NSubstitute.Exceptions.CallNotReceivedException: Expected to receive call:   
  PromptForYesNo("Sums insured business interruption period is 653 month(s) longer than fire indemnity period.", any String)   
Actually received (non-matching arguments indicated with '*' characters):   
  PromptForYesNo(*"Sums insured business interruption period is 653 month(s) longer than fire indemnity period.
"*, "Do you want to save?")

有人能看出问题所在吗? 对我来说,字符串看起来是相同的,它们来自同一个对象属性。

我很感激为什么会失败的一些信息,谢谢。

1 个答案:

答案 0 :(得分:0)

有一个我没注意到的换行符。