public static void BeArgumentException(this ObjectAssertions objectAssertions, string message, string parameterName) { var expectedMessage = new ArgumentException(message, parameterName).Message; objectAssertions.Be <ArgumentException>().WithMessage(expectedMessage); }
public AndConstraint <CommandAssertions <T, TCommand> > BeBoundTo([NotNull] T expected) { _helper.Be(expected); return(new AndConstraint <CommandAssertions <T, TCommand> >(this)); }