b34e331d63
- 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` |
||
---|---|---|
.. | ||
Assembly.LoadFrom.Tests.ps1 | ||
Assembly.LoadWithPartialName.Tests.ps1 | ||
Attributes.Tests.ps1 | ||
CommandDiscovery.Tests.ps1 | ||
Credential.Tests.ps1 | ||
DefaultCommands.Tests.ps1 | ||
Encoding.Tests.ps1 | ||
PropertyAccessor.Tests.ps1 | ||
ProxyCommand.tests.ps1 | ||
SemanticVersion.Tests.ps1 | ||
TypeResolution.Tests.ps1 | ||
ValidateAttributes.Tests.ps1 |