private MetaPackage readMetaPackage(string packageFile) { try { return(MetaPackage.Read(packageFile)); } catch { Console.WriteLine("Failed to read meta package: " + Path.GetFileName(packageFile)); return(null); } }
public void When_reading_an_invalid_package_it_returns_null() { Assert.That(MetaPackage.Read("/this/path/is/not/very/likely/to/exist.meta"), Is.Null); }