public static void MyClassInitialize(TestContext testContext)
        {
            string temp = System.IO.Path.GetTempPath();
            temp = System.IO.Path.Combine(temp, "PackageFileTestTemp");
            System.IO.Directory.CreateDirectory(temp);

            string filename = "TestFile.txt";
            TempFileRelative = filename;
            TempFile = System.IO.Path.Combine(temp, filename);

            TempPackage = new MockPackage(temp);

            using (var stream = new System.IO.StreamWriter(TempFile))
            {
                stream.WriteLine("New file FTW!");
            }
        }
 public void PackageFileConstructorNullPath()
 {
     IPackage ownerPackage = new MockPackage("someLocation");
     string path = string.Empty;
     PackageFile target = new PackageFile(ownerPackage, path);
     Assert.Fail("A ArgumentNullException exception should have been thrown");
 }