Skip to content

Write-CuPesterTests dot sourcing needs double quotes #107

Open
@Stephanevg

Description

@Stephanevg

Add support for dot sourcing with spaces in path
Result

. C:\Users\taavast3\OneDrive\UserGroups\Presentations\2019.06.PsConf2019\Learn classes with Class\Code\02.CheatingTDD.Class.Polymorphism.ps1
Describe '[Animal]-[Constructors]'{

}# end of Describe block
Describe '[Cat]-[Constructors]'{

It '[Cat]-[Constructor]([String]Name) should Not Throw' {

# -- Arrange


[String]$Name=''

# -- Act

# -- Assert

{[Cat]::New($Name)} | Should Not Throw 

}# end of it block

Should be

. "C:\Users\taavast3\OneDrive\UserGroups\Presentations\2019.06.PsConf2019\Learn classes with Class\Code\02.CheatingTDD.Class.Polymorphism.ps1"
Describe '[Animal]-[Constructors]'{

}# end of Describe block
Describe '[Cat]-[Constructors]'{

It '[Cat]-[Constructor]([String]Name) should Not Throw' {

# -- Arrange


[String]$Name=''

# -- Act

# -- Assert

{[Cat]::New($Name)} | Should Not Throw 

}# end of it block


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions