(GH-50) Specs to verify Chocolatey Package Dependency #56
Conversation
gep13
commented
Dec 6, 2015
- Closes Final sweep and cleanup of wiki articles #50
@ferventcoder before you say anything... This isn't pretty, and I know it isn't pretty, but I wanted to get something out there in the last few minutes I had on the computer before switching off for the night 😄 In general, what are your comments on the approach? Couldn't think, off the top of my head, a nice way to Mock to package and it's dependencies in a re-usable way, hence the duplication of the various elements. If we go ahead with something like this, we should probably do something for testing existence of dependencies that don't have a version, and possibly others as well. |
var packageDependenciesWithoutChocolatey = new List<PackageDependency> { fiddlerPackageDependency }; | ||
var packageDependenciesWithChocolatey = new List<PackageDependency> { fiddlerPackageDependency, chocolateyPackageDependency }; | ||
var dependencySetWithoutChocolatey = new PackageDependencySet(new FrameworkName(".NETFramework, Version = 4.0"), packageDependenciesWithoutChocolatey); | ||
var dependencySetWithChocolatey = new PackageDependencySet(new FrameworkName(".NETFramework, Version = 4.0"), packageDependenciesWithChocolatey); |
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.
can we leave out framework here? :)
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.
I don't think so. I notice that you left it in as well, so guessing there wasn't a way without it?
It's actually not that bad. |
|
I'll take this and update it so you can see what I mean. |
(GH-50) Specs to verify Chocolatey Package Dependency
Here you go sir, take a look - 1cdcb06 |