我有这样一个说法: validationResults.Select(result => result.Tag).ToList().Should().Contain(ServiceContractRuleKey.MedicalDeclarationNumberRequired "because a validation error should be added that the MedicalD
使用Visual Studio 2013,我已经通过NuGet将FluentAssertions 2.1.0.0安装到此C#项目中,但是我无法在FluentAssertions中设置断点,即使我已将调试器指向其源代码v2.1。我如何在FluentAssertions中成功设置断点?此外,当捕获FluentAssertions中的异常(这就是为什么我需要首先调试它)时,调试器会警告源代码在构建程序集
场景:我有一个具有可空属性的对象,当我运行被测方法时它将被更新。在预期的对象中,我没有指定它,因为我想单独验证该值。下面是一个简单的试验示范 using System;
using FluentAssertions;
using NUnit.Framework;
namespace FluentAssertionsNullableFailure
{
public class S
我必须考虑到只有共享属性比较两个集合。 如果我了解丹尼斯对How to combine collection and property assertions using fluent-assertions?的评论,则应该从2.0版开始工作。 我使用这个API: ActualOes.ShouldHave().SharedProperties().EqualTo(expectedOes);
Act