File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ Describe "AvoidUsingNewObject" {
451451
452452 It ' PSCustomObject Property' {
453453 $tempFile = Join-Path $TestDrive ' TestScript2.ps1'
454- Set-Content - LiteralPath $tempFile - Value {
454+ Set-Content - LiteralPath $tempFile - NoNewline - Value {
455455 for ($i = 0 ; $i -lt 100000 ; $i ++ ) {
456456 $resultObject = New-Object PSCustomObject - Property @ {
457457 Name = " Name$i "
@@ -467,7 +467,7 @@ Describe "AvoidUsingNewObject" {
467467
468468 It ' HashSet InvariantCultureIgnoreCase' {
469469 $tempFile = Join-Path $TestDrive ' TestScript3.ps1'
470- Set-Content - LiteralPath $tempFile - Value {
470+ Set-Content - LiteralPath $tempFile - NoNewline - Value {
471471 $hashSet = New-Object `
472472 - TypeName ' System.Collections.Generic.HashSet[String]' `
473473 - ArgumentList ([StringComparer ]::InvariantCultureIgnoreCase)
You can’t perform that action at this time.
0 commit comments