forked from nohwnd/Assert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Assert.psm1
34 lines (31 loc) · 1.04 KB
/
Assert.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Import-Module $PSScriptRoot\TypeClass\src\TypeClass.psm1 -DisableNameChecking
Import-Module $PSScriptRoot\Format\src\Format.psm1 -DisableNameChecking
. $PSScriptRoot\Compatibility\src\New-PSObject.ps1
Get-ChildItem -Path $PSScriptRoot\src\ -Recurse -Filter *.ps1 |
foreach { . $_.FullName }
Export-ModuleMember -Function @(
'Assert-Equivalent'
'Assert-Equal' # ?= ' ?eq
'Assert-NotEqual' # ?!= ?ne
'Assert-Same' # ?=== ?ref ?same
'Assert-NotSame' # ?!=== ?notref ?notsame
'Assert-Null' # ?0 ?null
'Assert-NotNull' # ?!0 ?notnull
'Assert-Type' # ?type ?is
'Assert-NotType' # ?nottype ?isnot
'Assert-LessThan' # ?< ?lt
'Assert-LessThanOrEqual' # ?<= ?le
'Assert-GreaterThan' # ?> ?gt
'Assert-GreaterThanOrEqual' # ?>= ?ge'
'Assert-True' # ?true
'Assert-False' # ?false
'Assert-Contain' # ?contain
'Assert-NotContain' #?notcontain
'Assert-Any' # ?any
'Assert-All' # ?all
'Assert-Throw'
'Assert-Like'
'Assert-NotLike'
'Assert-StringEqual'
'Assert-StringNotEqual'
)