/// <summary> /// Extracts the specified resource to the destination. /// The destination should be a file name. /// </summary> /// <param name="resourceName">The full name of the embedded resource. Use reflector or ILDasm if you're unsure.</param> /// <param name="destination">The filename or file path where the embedded resource should be extracted to.</param> /// <param name="cleanupOptions">Whether or not to cleanup the extracted resource after the test.</param> /// <param name="type">Any type in the assembly where the resource is embedded.</param> public ExtractResourceAttribute(string resourceName, string destination, ResourceCleanup cleanupOptions, Type type) { this.type = type; this.resourceName = resourceName; this.destination = destination; this.resourceCleanup = cleanupOptions; }
/// <summary> /// Extracts the specified resource to the destination. /// The destination should be a file name. /// </summary> /// <param name="resourceName">The full name of the embedded resource. Use reflector or ILDasm if you're unsure.</param> /// <param name="destination">The filename or file path where the embedded resource should be extracted to.</param> /// <param name="cleanupOptions">Whether or not to try and cleanup the resource at the end</param> public ExtractResourceAttribute(string resourceName, string destination, ResourceCleanup cleanupOptions) : this(resourceName, destination, cleanupOptions, null) { }