Embeds a video attachment with a mime-type compatible with its internal representation.
Namespace:
Gallio.FrameworkAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public static BinaryAttachment EmbedVideo( string attachmentName, Video video ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function EmbedVideo ( _ attachmentName As String, _ video As Video _ ) As BinaryAttachment |
Parameters
- attachmentName
- Type: System..::.String
The name of the attachment to create or null to automatically assign one. The attachment name must be unique within the scope of the currently executing test step.
- video
- Type: Gallio.Common.Media..::.Video
The video to attach.
Return Value
The attachment.
Remarks
This is a convenience method that forwards the request to the current default log stream writer as returned by the Default property.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if video is null. |
| System..::.InvalidOperationException | Thrown if there is already an attachment with the same name. |
