Skip to content

Conversation

@dlumpp
Copy link
Contributor

@dlumpp dlumpp commented Apr 5, 2018

add three new generic overloads to give actions passed to ShouldSatisfyAllConditions some context as suggested in #472

added:

public static void ShouldSatisfyAllConditions<T>(this T actual, [InstantHandle] params Action<T>[] conditions)
public static void ShouldSatisfyAllConditions<T>(this T actual, string customMessage, [InstantHandle] params Action<T>[] conditions)
public static void ShouldSatisfyAllConditions<T>(this T actual, [InstantHandle] Func<string> customMessage, [InstantHandle] params Action<T>[] conditions)

@josephwoodward
Copy link
Contributor

Sorry it's taken so long for me to get around to merging this, thanks for the PR! I'll be getting this merged in time for Shouldly 4.0

@SimonCropp SimonCropp changed the base branch from master to GenericShouldSatisfyAllConditions- July 4, 2020 08:44
@SimonCropp SimonCropp changed the base branch from GenericShouldSatisfyAllConditions- to master July 4, 2020 08:45
@SimonCropp
Copy link
Contributor

@dlumpp thanks. manually merged here #625

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants