PowerShell/test
Joel Sallow (/u/ta11ow) b34e331d63 Consider DBNull.Value and NullString.Value the same as $null when comparing with $null and casting to bool (#9794)
- Adds `LanguagePrimitives.IsNullLike()` method to account for `DBNull.Value` and `NullString.Value` so that they can be considered the same as a null value where sensible in PowerShell.
- Updates `-ne` and `-eq` binders to treat `DBNull.Value` and `NullString.Value` as equal to null/AutomationNull.
- Update code paths for comparing objects in LanguagePrimitives to ensure consistency with how the `-eq` and `-ne` binders work when calling LanguagePrimitives methods to do the comparisons.
- Make `LanguagePrimitives.IsNull()` and `LanguagePrimitives.IsNullLike()` public methods.
- Added tests for null behaviours in `NullRepresentatives.Tests.ps1`
2019-06-28 11:39:34 -07:00
..
common/markdown Fix gulp versions (#9916) 2019-06-25 10:42:52 -07:00
docker/networktest Update use of "PowerShell Core" to just "PowerShell" (#9513) 2019-05-10 15:34:27 -07:00
hosting Merged PR 8512: Update version for SDK tests and Microsoft.PowerShell.Native package 2019-05-24 20:17:45 +00:00
packaging/windows Update use of "PowerShell Core" to just "PowerShell" (#9513) 2019-05-10 15:34:27 -07:00
powershell Consider DBNull.Value and NullString.Value the same as $null when comparing with $null and casting to bool (#9794) 2019-06-28 11:39:34 -07:00
shebang Reorganize tests 2016-01-14 17:00:06 -08:00
tools Add module to support Pester tests for automating debugger commands (stepInto, stepOut, etc.), along with basic tests (#9825) 2019-06-13 07:19:13 -07:00
xUnit Cleanup unused pinvokes on unix (#9531) 2019-05-07 10:22:01 +05:00
README.md Move xUnit tests in new folder (#8356) 2018-12-13 14:22:07 -08:00
Test.Common.props Port PowerShell to .NET Core 3.0 (#9597) 2019-05-21 13:43:51 +08:00

Testing

The tests are organized by testing language. Thus Pester tests, which are written in the PowerShell language, are in ./powershell and xUnit tests, written in C#, are in ./xUnit. The third-party shebang test is in ./shebang.