Skip to content

Commit

Permalink
Added jetbrain contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Woodward committed Aug 18, 2016
1 parent 24ac873 commit 522e30e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ public static void ShouldBeNull<T>(this T actual, [InstantHandle]Func<string> cu
throw new ShouldAssertException(new ExpectedShouldlyMessage(actual, customMessage).ToString());
}

[ContractAnnotation("actual:null => halt")]
public static void ShouldNotBeNull<T>(this T actual)
{
ShouldNotBeNull(actual, () => null);
}

[ContractAnnotation("actual:null => halt")]
public static void ShouldNotBeNull<T>(this T actual, string customMessage)
{
ShouldNotBeNull(actual, () => customMessage);
}

[ContractAnnotation("actual:null => halt")]
public static void ShouldNotBeNull<T>(this T actual, [InstantHandle]Func<string> customMessage)
{
if (actual == null)
Expand Down

0 comments on commit 522e30e

Please sign in to comment.