fix: use CultureInfo ctor instead of Get-Culture -Name for PS5.1 compat - #462
6 fail, 2 skipped, 235 pass in 1m 11s
4 files 284 suites 1m 11s ⏱️
243 tests 235 ✅ 2 💤 6 ❌
972 runs 958 ✅ 8 💤 6 ❌
Results for commit 570ae9a.
Annotations
github-actions / Test Results
1 out of 4 runs failed: New-PlasterManifest Command Tests.Generates a valid manifest.Works with just Path, TemplateName, TemplateType and Id
artifacts/Unit Test Results (OS Windows PowerShell 5.1)/testResults.xml [took 0s]
Raw output
Expected strings to be the same, but they were different.
Expected length: 474
Actual length: 472
Strings differ at index 99.
Expected: '...ding="utf-8"?>\n<plasterManifest\n schemaVersion="1.2"\n templateType="Item"\n xmlns="http://...'
But was: '...ding="utf-8"?>\n<plasterManifest\n schemaVersion="1.2"\n templateType="Item" xmlns="http://www...'
---------------------------------------------------------------------------------^
at $actualManifest | Should -BeExactly $expectedManifest, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:27
at global:CompareManifestContent, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:27
at <ScriptBlock>, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:75
github-actions / Test Results
1 out of 4 runs failed: New-PlasterManifest Command Tests.Generates a valid manifest.Properly encodes XML special chars and entity refs
artifacts/Unit Test Results (OS Windows PowerShell 5.1)/testResults.xml [took 0s]
Raw output
Expected strings to be the same, but they were different.
Expected length: 512
Actual length: 510
Strings differ at index 102.
Expected: '...g="utf-8"?>\n<plasterManifest\n schemaVersion="1.2"\n templateType="Project"\n xmlns="http://...'
But was: '...g="utf-8"?>\n<plasterManifest\n schemaVersion="1.2"\n templateType="Project" xmlns="http://www...'
---------------------------------------------------------------------------------^
at $actualManifest | Should -BeExactly $expectedManifest, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:27
at global:CompareManifestContent, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:27
at <ScriptBlock>, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:108
github-actions / Test Results
1 out of 4 runs failed: New-PlasterManifest Command Tests.Generates a valid manifest.Captures tags correctly
artifacts/Unit Test Results (OS Windows PowerShell 5.1)/testResults.xml [took 0s]
Raw output
Expected strings to be the same, but they were different.
Expected length: 504
Actual length: 502
Strings differ at index 99.
Expected: '...ding="utf-8"?>\n<plasterManifest\n schemaVersion="1.2"\n templateType="Item"\n xmlns="http://...'
But was: '...ding="utf-8"?>\n<plasterManifest\n schemaVersion="1.2"\n templateType="Item" xmlns="http://www...'
---------------------------------------------------------------------------------^
at $actualManifest | Should -BeExactly $expectedManifest, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:27
at global:CompareManifestContent, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:27
at <ScriptBlock>, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:141
github-actions / Test Results
1 out of 4 runs failed: New-PlasterManifest Command Tests.Generates a valid manifest.AddContent parameter works
artifacts/Unit Test Results (OS Windows PowerShell 5.1)/testResults.xml [took 0s]
Raw output
Expected strings to be the same, but they were different.
Expected length: 1004
Actual length: 1002
Strings differ at index 102.
Expected: '...g="utf-8"?>\n<plasterManifest\n schemaVersion="1.2"\n templateType="Project"\n xmlns="http://...'
But was: '...g="utf-8"?>\n<plasterManifest\n schemaVersion="1.2"\n templateType="Project" xmlns="http://www...'
---------------------------------------------------------------------------------^
at $actualManifest | Should -BeExactly $expectedManifest, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:27
at global:CompareManifestContent, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:27
at <ScriptBlock>, D:\a\Plaster\Plaster\tests\New-PlasterManifest.Tests.ps1:195
github-actions / Test Results
1 out of 4 runs failed: Resolve-ModuleVersionString.Should resolve a valid version string
artifacts/Unit Test Results (OS Windows PowerShell 5.1)/testResults.xml [took 0s]
Raw output
Expected the value to have type [System.Management.Automation.SemanticVersion] or any of its subtypes, but got 1.2.3 with type [version].
at $result | Should -BeOfType [System.Management.Automation.SemanticVersion], D:\a\Plaster\Plaster\tests\Resolve-ModuleVersionString.Tests.ps1:19
at <ScriptBlock>, D:\a\Plaster\Plaster\tests\Resolve-ModuleVersionString.Tests.ps1:19
github-actions / Test Results
1 out of 4 runs failed: Resolve-ModuleVersionString.Should append .0 to a version string with only two components
artifacts/Unit Test Results (OS Windows PowerShell 5.1)/testResults.xml [took 0s]
Raw output
Expected the value to have type [System.Management.Automation.SemanticVersion] or any of its subtypes, but got 1.2.0 with type [version].
at $result | Should -BeOfType [System.Management.Automation.SemanticVersion], D:\a\Plaster\Plaster\tests\Resolve-ModuleVersionString.Tests.ps1:26
at <ScriptBlock>, D:\a\Plaster\Plaster\tests\Resolve-ModuleVersionString.Tests.ps1:26