diff --git a/Functions/Context.ps1 b/Functions/Context.ps1 index f74ca2ece..f1b46bcda 100644 --- a/Functions/Context.ps1 +++ b/Functions/Context.ps1 @@ -13,6 +13,11 @@ apply to tests within that Context . .PARAMETER Name The name of the Context. This is a phrase describing a set of tests within a describe. +.PARAMETER Tag +Optional parameter containing an array of strings. When calling Invoke-Pester, +it is possible to specify a -Tag parameter which will only execute Context blocks +containing the same Tag. + .PARAMETER Fixture Script that is executed. This may include setup specific to the context and one or more It blocks that validate the expected outcomes. diff --git a/Functions/New-MockObject.ps1 b/Functions/New-MockObject.ps1 index 385a89d2e..569fc847a 100644 --- a/Functions/New-MockObject.ps1 +++ b/Functions/New-MockObject.ps1 @@ -1,17 +1,21 @@ function New-MockObject { - <# - .SYNOPSIS - This function instantiates a .NET object from a type. The assembly for the particular type must be - loaded. +<# +.SYNOPSIS +This function instantiates a .NET object from a type. - .PARAMETER Type - The .NET type to create an object from. +.DESCRIPTION +Using the New-MockObject you can mock an object based on .NET type. - .EXAMPLE - PS> $obj = New-MockObject -Type 'System.Diagnostics.Process' - PS> $obj.GetType().FullName - System.Diagnostics.Process - #> +An .NET assembly for the particular type must be available in the system and loaded. + +.PARAMETER Type +The .NET type to create an object based on. + +.EXAMPLE +PS> $obj = New-MockObject -Type 'System.Diagnostics.Process' +PS> $obj.GetType().FullName + System.Diagnostics.Process +#> param ( [Parameter(Mandatory = $true)]