Viscalyx.Assert
1.2.1
Assertions for Pester that can improve your tests.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
Copyright the Viscalyx.Assert contributors. All rights reserved.
Package Details
Author(s)
- Viscalyx
Tags
Pester Assertion Testing TDD BDD Assert PesterAssertion
Functions
Assert-BitwiseFlag Assert-BlockString Assert-NotBitwiseFlag Assert-ObjectMethod Assert-ObjectProperty
Dependencies
This module has no dependencies.
Release Notes
## [1.2.1] - 2025-12-15
### Added
- `Assert-BitwiseFlag`
- New command to assert that a value has the specified bitwise flag set.
Supports integers, enums, and array processing with `-Each` parameter.
Alias: `Should-HaveFlag`.
- Added `-All` parameter to require all array elements have the flag set
(default behavior when used with `-Each`).
- Added `-Any` parameter to require at least one array element has the flag
set when used with `-Each`.
- `Assert-NotBitwiseFlag`
- New command to assert that an integer value does not have specific bitwise
flags set. Supports integers, enums, and array processing with `-Each`
parameter. Alias: `Should-NotHaveFlag`.
- Added `-All` parameter to require all array elements do not have the flag set
(default behavior when used with `-Each`).
- Added `-Any` parameter to require at least one array element does not
have the flag set when used with `-Each`.
- Added private functions:
- `Assert-BitwiseType` - Validates that a value is compatible with bitwise
operations (integer or enum type).
- `Get-ProcessedPipelineInput` - Processes pipeline input for assertion
commands, handling single-element array unwrapping.
- `Test-BitwiseCompatible` - Tests whether a value can be used in bitwise
operations (integers and enums).
- `Test-BitwiseFlagSet` - Tests if a value has specific bitwise flags set.
### Changed
- Bump action codeql-action/upload-sarif to v4
- Bump action checkout to v6
FileList
- Viscalyx.Assert.nuspec
- Viscalyx.Assert.psd1
- Modules\DscResource.Common\0.24.0\en-US\about_DscResource.Common.help.txt
- Modules\DscResource.Common\0.24.0\en-US\DscResource.Common.strings.psd1
- Viscalyx.Assert.psm1
- Modules\Viscalyx.Common\0.7.0\en-US\about_Viscalyx.Common.help.txt
- en-US\Viscalyx.Assert.strings.psd1
- Modules\Viscalyx.Common\0.7.0\en-US\Viscalyx.Common.strings.psd1
- en-US\about_Viscalyx.Assert.help.txt
- Modules\Viscalyx.Common\0.7.0\en-US\Viscalyx.Common-help.xml
- en-US\Viscalyx.Assert-help.xml
- Modules\Viscalyx.Common\0.7.0\Modules\DscResource.Common\0.24.0\DscResource.Common.psd1
- Modules\DscResource.Common\0.24.0\DscResource.Common.psd1
- Modules\Viscalyx.Common\0.7.0\Modules\DscResource.Common\0.24.0\DscResource.Common.psm1
- Modules\DscResource.Common\0.24.0\DscResource.Common.psm1
- Modules\Viscalyx.Common\0.7.0\Modules\DscResource.Common\0.24.0\en-US\DscResource.Common-help.xml
- Modules\Viscalyx.Common\0.7.0\Viscalyx.Common.psm1
- Modules\Viscalyx.Common\0.7.0\Modules\DscResource.Common\0.24.0\en-US\about_DscResource.Common.help.txt
- Modules\Viscalyx.Common\0.7.0\Viscalyx.Common.psd1
- Modules\Viscalyx.Common\0.7.0\Modules\DscResource.Common\0.24.0\en-US\DscResource.Common.strings.psd1
- Modules\DscResource.Common\0.24.0\en-US\DscResource.Common-help.xml
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.2.1 (current version) | 5 | 12/15/2025 |
| 1.2.1-previe... | 3 | 12/15/2025 |
| 1.2.0 | 8 | 10/4/2025 |
| 1.1.1-previe... | 3 | 10/4/2025 |
| 1.1.0 | 5 | 10/3/2025 |
| 1.1.0-previe... | 3 | 10/3/2025 |
| 1.0.0 | 14 | 2/4/2025 |
| 0.1.1-previe... | 4 | 2/4/2025 |
| 0.1.1-previe... | 4 | 2/2/2025 |
| 0.1.1-previe... | 4 | 2/2/2025 |
| 0.1.1-previe... | 68 | 8/26/2024 |
| 0.1.1-previe... | 55 | 8/22/2024 |
| 0.1.0-previe... | 5 | 8/20/2024 |