public void WriteToFile_ThrowsForEmptyFilePath()
 {
     // Assert
     Assert.Throws <ArgumentException>(() => PackageSpecWriter.WriteToFile(EmptyPackageSpec, filePath: null));
 }
 public void WriteToFile_ThrowsForNullPackageSpec()
 {
     // Assert
     Assert.Throws <ArgumentNullException>(() => PackageSpecWriter.WriteToFile(packageSpec: null, filePath: @"C:\a.json"));
 }