You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/functions/assertions/Be.ps1
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -63,12 +63,15 @@ function NotShouldBeFailureMessage($ActualValue, $ExpectedValue, $Because) {
63
63
return"Expected $(Format-Nicely$ExpectedValue) to be different from the actual value,$(if ($null-ne$Because) { Format-Because$Because }) but got the same value."
64
64
}
65
65
66
-
&$script:SafeCommands['Add-ShouldOperator'] -Name Be `
66
+
&$script:SafeCommands['Add-ShouldOperator'] -Name Be `
67
67
-InternalName Should-Be `
68
68
-Test ${function:Should-Be}`
69
69
-Alias 'EQ'`
70
70
-SupportsArrayInput
71
71
72
+
Set-ShouldOperatorHelpMessage-OperatorName Be `
73
+
-HelpMessage 'Compares one object with another for equality and throws if the two objects are not the same.'
@@ -133,12 +136,14 @@ function NotShouldBeExactlyFailureMessage($ActualValue, $ExpectedValue, $Because
133
136
return"Expected $(Format-Nicely$ExpectedValue) to be different from the actual value,$(if ($null-ne$Because) { Format-Because$Because }) but got exactly the same value."
-HelpMessage "Asserts that a number (or other comparable value) is greater than an expected value. Uses PowerShell's -gt operator to compare the two values."
-HelpMessage "Asserts that a number (or other comparable value) is lower than, or equal to an expected value. Uses PowerShell's -le operator to compare the two values."
-HelpMessage "Asserts that a number (or other comparable value) is lower than an expected value. Uses PowerShell's -lt operator to compare the two values."
-HelpMessage "Asserts that a number (or other comparable value) is greater than or equal to an expected value. Uses PowerShell's -ge operator to compare the two values."
-HelpMessage "Asserts that the actual value should be an object of a specified type (or a subclass of the specified type) using PowerShell's -is operator."
0 commit comments