Fix package id parsing and avoid NPE when feed is missing some propertie... #776
Nuget feed's <m:properties> doesn't contain a <d:Id>, the id is instead found in the 's <title> element.
The element in a nuget feed contains something like "http://www.nuget.org/api/v2/Packages(Id='_Atrico.Lib.CommonAssemblyInfo',Version='18.104.22.168')" which is not what we want here.
Some nuget package sources omit some elements, for example ProGet doesn't report the Language element for handle missing elements by returning an empty string.
Had difficulty getting a new test project to run as part of the main build so have stuck the new test in the
I'm remain a little confused as to how the code that was there before worked. Have I done something dumb like reference the wrong stream? It appears to line up with the example in
We don't need it per se but I found its exception messages much more useful in debugging the issue I found in the function.
For example XUnit's Assert.Equals prints just the ToString of each parameter
Whilst using Unquote prints..