Permalink
Browse files

should.be_gt template

  • Loading branch information...
1 parent 1c6f8c3 commit 5e98dab60f1ef5c548de1bce7f5f0ac3394fc1cd @sreal committed Apr 16, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 ObjectAdaptations/types.ps1xml
@@ -28,6 +28,11 @@
if ($expected -eq $this.actual) {throw New-Object PesterFailure($expected,$this.actual)}
}
} -PassThru |
+
+ Add-Member ScriptMethod be_gt {
+ param($expected)
+ if ($this.actual -gt $expected) {throw New-Object PesterFailure($expected,$this.actual)}
+ } -PassThru |
Add-Member ScriptMethod have_count_of {
param($expected_count)

0 comments on commit 5e98dab

Please sign in to comment.