public void SetUp() { var system = new FileSystem(); system.DeleteDirectory("package1"); system.CreateDirectory("package1"); system.CreateDirectory("package1", "bin"); system.CreateDirectory("package1", "WebContent"); system.CreateDirectory("package1", "Data"); theOriginalManifest = new PackageManifest { Assemblies = new[] { "a", "b", "c" }, Name = "Extraordinary" }; theOriginalManifest.AddDependency("bottle1", true); theOriginalManifest.AddDependency("bottle2", true); theOriginalManifest.AddDependency("bottle3", false); theOriginalManifest.WriteTo("package1"); thePackage = new PackageManifestReader(new FileSystem(), directory => directory.AppendPath("WebContent")).LoadFromFolder("package1"); }
public void SetUp() { var system = new FileSystem(); system.DeleteDirectory("package1"); system.CreateDirectory("package1"); system.CreateDirectory("package1", "bin"); system.CreateDirectory("package1", "WebContent"); system.CreateDirectory("package1", "Data"); theOriginalManifest = new PackageManifest(){ Assemblies = new string[]{"a", "b", "c"}, Name = "Extraordinary" }; theOriginalManifest.AddDependency("bottle1", true); theOriginalManifest.AddDependency("bottle2", true); theOriginalManifest.AddDependency("bottle3", false); theOriginalManifest.WriteTo("package1"); thePackage = new PackageManifestReader(new FileSystem(), directory => directory.AppendPath("WebContent")).LoadFromFolder("package1"); }
public void SetUp() { var system = new FileSystem(); system.DeleteDirectory("package1"); system.CreateDirectory("package1"); system.CreateDirectory("package1", "bin"); system.WriteStringToFile(Path.Combine("package1", "bin", "a.dll"), "I'm a managed assembly"); system.WriteStringToFile(Path.Combine("package1", "bin", "b.dll"), "I'm a native assembly"); system.CreateDirectory("package1", "WebContent"); system.CreateDirectory("package1", "Data"); theOriginalManifest = new PackageManifest { Assemblies = new[] { "a" }, NativeAssemblies = new[] { "b" }, Name = "Extraordinary" }; theOriginalManifest.WriteTo("package1"); thePackage = new PackageManifestReader(new FileSystem(), directory => directory.AppendPath("WebContent")).LoadFromFolder("package1"); }