pester / Pester

Pester is the ubiquitous test and mock framework for PowerShell.
https://pester.dev/
Other
3.08k stars 470 forks source link

BeLessThen operator does not work #738

Closed dotps1 closed 7 years ago

dotps1 commented 7 years ago

When trying to use the BeLessThen comparison i get an error that it is not a valid Should operator.

PS C:\> Describe "BeLessThen" {
    $value = 3
    It "Value should not be less then 3" {
        $value |
            Should Not BeLessThen 3
    }
}

Describing BeLessThen
  [-] Value should not be less then 3 33ms
    'BeLessThen' is not a valid Should operator.
    at line: 92 in C:\Program Files\WindowsPowerShell\Modules\pester\4.0.2\Functions\Assertions\Should.ps1
dotps1 commented 7 years ago

so, im just an idiot and it's Should BeLessThAn not ThEn. sorry.

jrich523 commented 7 years ago

dont you wish you asked in #powershell first? ;)