Skip to content

Commit

Permalink
Improve ShouldThrow by having it throw MatchException.
Browse files Browse the repository at this point in the history
  • Loading branch information
plioi committed Jun 20, 2020
1 parent 41bb8be commit a2be180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fixie.Tests/Assertions/AssertionExtensions.cs
Expand Up @@ -84,7 +84,7 @@ public static void ShouldBeEmpty<T>(this IEnumerable<T> collection)
return (TException)actual;
}

throw new AssertException("Expected an exception to be thrown.");
throw new MatchException(typeof(TException).FullName, "No exception was thrown.");
}

public static void ShouldBeGreaterThan<T>(this T actual, T minimum) where T: IComparable<T>
Expand Down

0 comments on commit a2be180

Please sign in to comment.