-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Added comma to replaced characters in assemblyname #4136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
56c72fb
853ebcc
7eb13b1
0190477
5d69d2c
c3b823f
c1a8dd8
3d4cef5
88c0b9b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||
| Describe "Script with a class definition run path" { | ||||
| Describe "Script with a class definition run path" -Tags "CI" { | ||||
|
|
||||
| It "Script with a class definition can run from a path without a comma" -Tags "CI" { | ||||
| It "Script with a class definition can run from a path without a comma" { | ||||
|
|
||||
| $FilePath = '.\MyTest.ps1' | ||||
|
|
||||
|
|
@@ -20,7 +20,7 @@ Describe "Script with a class definition run path" { | |||
| $Success | Should Be $True | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid I suggest a test that actually uses the class, so maybe something like: Instead, try something like: `@
class MyClass { static [string]$MyProperty = $PSScriptRoot }
[MyClass]::MyProperty
'@ > $testDrive/My,Test.ps1
& $testDrive/My,Test.ps1 | Should Match ".*My,Test.ps1"Or something like that.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. $PSScriptRoot doesn't work inside a class. |
||||
| } | ||||
|
|
||||
| It "Script with a class definition can run from a path with a comma" -Tags "CI" { | ||||
| It "Script with a class definition can run from a path with a comma" { | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comments as above test
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These two test cases can be combined into 1 using the -TestCases parameter for It. Example: PowerShell/test/powershell/Language/Parser/LanguageAndParser.TestFollowup.Tests.ps1 Line 147 in 02b5f35
|
||||
|
|
||||
| $FilePath = '.\My,Test.ps1' | ||||
|
|
||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use $TestDrive for temporary files.