public void File_Does_Not_Exist_Produces_Empty_List() { var resolver = new HomePathResolver(Guid.NewGuid().ToString()); var list = resolver.MapPackages().ToList(); Expect(list, Is.Not.Null); Expect(list.Select(s => s.Key).FirstOrDefault(), Is.Null); Expect(list.Select(s => s.Value).FirstOrDefault(), Is.Null); }
public void Warnings_For_Empty_Package() { var resolver = new HomePathResolver( Path.Combine(Environment.CurrentDirectory, "../../Test-Files/Empty-Package/")); var p = new PackageProcessing(resolver, resolver.MapPackages()); Expect(p.Reporting.Warnings.Count, Is.GreaterThan(0)); }