NSubstitute接收到的字符串不匹配

NSubstitute接收到的字符串不匹配,nsubstitute,Nsubstitute,有人知道问题出在哪里吗? 对我来说,字符串看起来是相同的,它们来自相同的对象属性 我希望你能告诉我为什么失败,谢谢 有一个我没有注意到的换行符。假设您已经准确地复制并粘贴了它,第二个换行符以第一个没有的换行符结束-可能是这样吗?如果没问题,你想忽略它,那么你可以尝试。在比较字符串之前修剪字符串。你是对的,实际上那里有一个换行符。谢谢 NSubstitute.Exceptions.CallNotReceivedException: Expected to receive call: Pr

有人知道问题出在哪里吗? 对我来说,字符串看起来是相同的,它们来自相同的对象属性


我希望你能告诉我为什么失败,谢谢

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

假设您已经准确地复制并粘贴了它,第二个换行符以第一个没有的换行符结束-可能是这样吗?如果没问题,你想忽略它,那么你可以尝试。在比较字符串之前修剪字符串。你是对的,实际上那里有一个换行符。谢谢
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?")