shouldly/shouldly — Issue #35: custom error messages
Author: benjamine
Created: 2011-10-31 13:35:17+00:00
State: open

It would be nice if we can provide custom messages to assertions, eg:

Browser.ContainsText(text).ShouldBe(true, "'"+text+"' not found on page body");

or:

Browser.ContainsText(text).ShouldBe(true).Otherwise("'"+text+"' not found on page body");

(in the example ContainsText is an implementation that cannot be replaced by ShouldContain() )