lholman / OneBuild

Convention based PowerShell build for .NET http://lholman.github.io/OneBuild/
Apache License 2.0
17 stars 2 forks source link

Unit tests for New-NugetPackages are not using the mock for Get-AllNuSpecFiles #37

Closed AwaNoodle closed 9 years ago

AwaNoodle commented 9 years ago

While debugging something I was working on I noticed that the files picked up in the New-NugetPackage were not the ones that should have been supplied by the Mock in the test but was the OneBuild nuspec file. This seems to be an issue with scoping on the Mocks and they're not behaving like expected from the documentation.

The tests are passing but this appears to be luck of which mock in honoured.

lholman commented 9 years ago

Closed with PR #38