full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/Report/ModifiedDateReport1.ps1
ModifiedDateReport1.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") function Get-DocInventory() { #$farm = [microsoft....
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/28-Oct/Get-Customized-JavaScript.ps1
Get-Customized-JavaScript.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$False)] [string]$OutputPath, [Parameter(Mandatory=$False)] [string]$OutputPathForErrors ) [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Adm...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/28-Oct/Get-Customized-MasterPage.ps1
Get-Customized-MasterPage.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$False)] [string]$OutputPath, [Parameter(Mandatory=$False)] [string]$OutputPathForErrors ) [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Adm...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/4 Nov/Get-PageLayouts.ps1
Get-PageLayouts.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$False)] [string]$OutputPath, [Parameter(Mandatory=$False)] [string]$OutputPathForErrors ) [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Adm...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/4 Nov/ParseFarmFeature.ps1
ParseFarmFeature.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$ReportPath, [Parameter(Mandatory=$False)] [string]$OutputPath ) write-host "Started:" $(get-date) #verify file $item = get-item $ReportPath if($OutputPath -eq "") { $OutputPath = $item.DirectoryName } Write-Host "Loading...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/4 Nov/Parse-DellEMCReport.ps1
Parse-DellEMCReport.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$ReportPath, [Parameter(Mandatory=$False)] [string]$OutputPath ) write-host "Started:" $(get-date) #verify file $item = get-item $ReportPath if($OutputPath -eq "") { $OutputPath = $item.DirectoryName } Write-Host "Loading...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/CT_SC/GetContentTypes_SiteColumns.ps1
GetContentTypes_SiteColumns.ps1
#Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue [System.Reflection.Assembly]::Load(“Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”) [System.Reflection.Assembly]::Load(“Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/Get-CustomSolutions/Get-UserSolutionFiles.ps1
Get-UserSolutionFiles.ps1
$UniquesolnNames =@(); Get-SPSite | foreach { $_.GetCatalog([Microsoft.SharePoint.SPListTemplateType]::SolutionCatalog) } | foreach { $_.Items } | foreach { $soln = $_ if($UniquesolnNames -notcontains $soln.Name) { Write-Host $soln.Name $solnPath = $pwd.Path + "\" + $soln.Name [System.IO.FileStream] $ou...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/Get-CustomSolutions/Get-SolutionFiles.ps1
Get-SolutionFiles.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") $farm = [microsoft.sharepoint.administration.spfarm]:...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/CSR/CSR.ps1
CSR.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") $webApplicationURL= $( Read-Host "Please provide Web Application URL" ) Write-Host "Please provide the range of Site Collections to generate this ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/8 Nov/ParseAll.ps1
ParseAll.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$ReportPath ) write-host "Started:" $(get-date) #verify file $item = get-item $ReportPath Write-Host "Loading report :" Write-Host $ReportPath -ForegroundColor Yellow $xmlDoc = Get-Content $ReportPath $rssData= [System.Management...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/8 Nov/Parse.ps1
Parse.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$ReportPath ) write-host "Started:" $(get-date) #verify file $item = get-item $ReportPath Write-Host "Loading report :" Write-Host $ReportPath -ForegroundColor Yellow #[xml]$xmlDoc = Get-Content $ReportPath $Reader = New-Object IO.St...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/ListAllInfoPathforms/ListAllInfoPathforms.ps1
ListAllInfoPathforms.ps1
#Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue [System.Reflection.Assembly]::Load(“Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”) [System.Reflection.Assembly]::Load(“Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/Get-SPFarmSettings/Get-SPFarmInfo.ps1
Get-SPFarmInfo.ps1
## ## Common SharePoint configuration settings ## Write-Host "Retrieve information about all SharePoint Products installed in the farm..." -NoNewline #Retrieve information about all SharePoint Products installed in the farm, and the versions of all updates installed for each product. Get-SPProduct | Expor...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/Get-LastModifiedDate-Query/Get-Site-LastModifiedDate-Query.ps1
Get-Site-LastModifiedDate-Query.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") function Get-Site-LastModifiedDate-Query () { #$fa...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/Get-LastModifiedDate-Query/Get-LastModifiedDate-Query.ps1
Get-LastModifiedDate-Query.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") function Get-LastModifiedDate-Query() { $ContentSe...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/TA_LV/GetThresholdApproachingListViews.ps1
GetThresholdApproachingListViews.ps1
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $siteCollectionURL= $( Read-Host "Please provide Site Collection URL" ) ##Read the file path where site content types is stored $ListsApproachingThresholds = Read-Host “Specify the file name along extension(.CSV) with folder path details...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/26-Oct/Get-Site-LastModifiedDate-Query.ps1
Get-Site-LastModifiedDate-Query.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") function Get-Site-LastModifiedDate-Query () { #$fa...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/26-Oct/Get-LastModifiedDate-Query.ps1
Get-LastModifiedDate-Query.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") function Get-LastModifiedDate-Query() { $ContentSe...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/26-Oct/Get-FileAgeAndSize.ps1
Get-FileAgeAndSize.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") function Get-FileAgeAndSize(){ $ContentService...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/UserProfile/UserProfile.ps1
UserProfile.ps1
## Requires Full control for User Profile Service. [CmdletBinding()] param( [Parameter(Mandatory=$True,Position=1)] [string]$SiteCollectionUrl="" ) Add-PSSnapin "Microsoft.SharePoint.PowerShell" #User Profile Service Export $userProfileObject = Get-SPServiceApplication | Where-Object {$_.TypeName -eq ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/25Oct2016/Get-FileDetails.ps1
Get-FileDetails.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") function Get-FileAgeAndSize(){ $ContentService...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/25Oct2016/Get-FileAgeAndSize.ps1
Get-FileAgeAndSize.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") function Get-FileAgeAndSize(){ $ContentService...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/29 Nov/Get-AllDocuments.ps1
Get-AllDocuments.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$WebApplicationUrl, [Parameter(Mandatory=$False)] [string]$DocumentsOutputPath, [Parameter(Mandatory=$False)] [string]$OutputPathForHistory, [Parameter(Mandatory=$False)] [long]$FileSplitLimit, [Parameter(Mandatory=$False)...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/29 Nov/Get-AllDocumentsUpdatedv1.ps1
Get-AllDocumentsUpdatedv1.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$WebApplicationUrl, [Parameter(Mandatory=$False)] [string]$DocumentsOutputPath, [Parameter(Mandatory=$False)] [string]$OutputPathForHistory, [Parameter(Mandatory=$False)] [long]$FileSplitLimit, [Parameter(Mandatory=$False)...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/29 Nov/Get-AllDocumentsUpdatedv2.ps1
Get-AllDocumentsUpdatedv2.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$WebApplicationUrl, [Parameter(Mandatory=$False)] [string]$DocumentsOutputPath, [Parameter(Mandatory=$False)] [string]$OutputPathForHistory, [Parameter(Mandatory=$False)] [long]$FileSplitLimit, [Parameter(Mandatory=$False)...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/29 Nov/Get-AllDocumentsUpdated.ps1
Get-AllDocumentsUpdated.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$WebApplicationUrl, [Parameter(Mandatory=$False)] [string]$DocumentsOutputPath, [Parameter(Mandatory=$False)] [string]$OutputPathForHistory, [Parameter(Mandatory=$False)] [long]$FileSplitLimit, [Parameter(Mandatory=$False)...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/2 Nov/Get-Customized-JavaScript.ps1
Get-Customized-JavaScript.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$False)] [string]$OutputPath, [Parameter(Mandatory=$False)] [string]$OutputPathForErrors ) [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Adm...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/2 Nov/Get-MasterPage-Javascript.ps1
Get-MasterPage-Javascript.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$False)] [string]$OutputPath, [Parameter(Mandatory=$False)] [string]$OutputPathForErrors ) [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Adm...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/2 Nov/Get-FileAgeAndSize.ps1
Get-FileAgeAndSize.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") function Filter-Documents-ByMonth($DateValue,$splList...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/2 Nov/Get-Customized-MasterPage-Javascript.ps1
Get-Customized-MasterPage-Javascript.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$False)] [string]$OutputPath, [Parameter(Mandatory=$False)] [string]$OutputPathForErrors ) [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Adm...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/2 Nov/Get-Customized-MasterPage.ps1
Get-Customized-MasterPage.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$False)] [string]$OutputPath, [Parameter(Mandatory=$False)] [string]$OutputPathForErrors ) [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Adm...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/7 Nov/ParseAll.ps1
ParseAll.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$ReportPath ) write-host "Started:" $(get-date) #verify file $item = get-item $ReportPath Write-Host "Loading report :" Write-Host $ReportPath -ForegroundColor Yellow #[xml]$xmlDoc = Get-Content $ReportPath $Reader = New-Object IO.St...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/7 Nov/Parse.ps1
Parse.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$ReportPath ) write-host "Started:" $(get-date) #verify file $item = get-item $ReportPath Write-Host "Loading report :" Write-Host $ReportPath -ForegroundColor Yellow #[xml]$xmlDoc = Get-Content $ReportPath $Reader = New-Object IO.St...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/sp2013/ParseDatabase.ps1
ParseDatabase.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$ReportPath ) write-host "Started:" $(get-date) #verify file $item = get-item $ReportPath Write-Host "Loading report :" Write-Host $ReportPath -ForegroundColor Yellow #$xmlDoc = Get-Content $ReportPath $xmlDoc1 = Get-Content $ReportP...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/9 Nov/ParseManagedPath.ps1
ParseManagedPath.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$ReportPath ) write-host "Started:" $(get-date) #verify file $item = get-item $ReportPath Write-Host "Loading report :" Write-Host $ReportPath -ForegroundColor Yellow $xmlDoc = Get-Content $ReportPath $rssData= [System.Management...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/9 Nov/ParseAAM.ps1
ParseAAM.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$ReportPath ) write-host "Started:" $(get-date) #verify file $item = get-item $ReportPath Write-Host "Loading report :" Write-Host $ReportPath -ForegroundColor Yellow $xmlDoc = Get-Content $ReportPath $rssData= [System.Management...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/9 Nov/ParseDatabase.ps1
ParseDatabase.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$ReportPath ) write-host "Started:" $(get-date) #verify file $item = get-item $ReportPath Write-Host "Loading report :" Write-Host $ReportPath -ForegroundColor Yellow #$xmlDoc = Get-Content $ReportPath $xmlDoc1 = Get-Content $ReportP...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/Get-LastModifiedDate/Get-Site-LastModifiedDate.ps1
Get-Site-LastModifiedDate.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") function Get-Site-LastModifiedDate () { #$farm = [...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/Get-LastModifiedDate/Get-LastModifiedDate.ps1
Get-LastModifiedDate.ps1
[Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Portal") function Get-LastModifiedDate() { $ContentService ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/FarmConfigurationSettings/FarmConfigurationSettings.ps1
FarmConfigurationSettings.ps1
## ## Common SharePoint configuration settings ## #Retrieve Web Application information. The default depth of 2 does not return much detail--we recommend that you use a depth of 4 for this cmdlet. Get-SPWebApplication | Export-Clixml .\WebAppFilename.xml -depth 4 #Retrieve custom layout information. Get-SPWebA...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/Get-SPFarmInventory/Get-SPFarmInventory.ps1
Get-SPFarmInventory.ps1
<# .Description This script is a collection of functions that will inventory a SharePoint 2007, SharePoint 2010, or SharePoint 2013 content. The output is a collection of csv files that can then be ported to Excel, PowerPivot, Access, SQL Server (you get the idea) for futher analysis. #> function Inventory-...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/3 Nov/GetListAllInfoPathForms.ps1
GetListAllInfoPathForms.ps1
None
PowerShellCorpus/Github/kumarksendhi_ekmuc/Projects/MedicalProj/Phase1/MedicalProj/3 Nov/Get-AllLists.ps1
Get-AllLists.ps1
[CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$WebApplicationUrl, [Parameter(Mandatory=$False)] [string]$ListsOutputPath, [Parameter(Mandatory=$False)] [long]$FileSplitLimit ) if($FileSplitLimit -lt 100 -and $FileSplitLimit -ne 0) { Throw "FileSplitLimit must be greater tha...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/ADStaleUserCleanup/ADStaleUserCleanup.ps1
ADStaleUserCleanup.ps1
function ADStaleUserCleanup { Param( [Parameter(Mandatory=$true)] [String[]]$Username, [int]$DisableAfter ) Process{ $UserAccount = Get-ADUser -identity $Username If($UserAccount.lastlogintime -lt (Get-Date).AddDays(-$DisableAfter)){ $UserAccount | Disable-ADUser Set-ADUser -Identity $UserAccount.Us...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/ADStaleUserCleanup/ADStaleUserCleanup.Tests.ps1
ADStaleUserCleanup.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Describe "ADStaleUserCleanup" { BeforeAll{ if (Get-Module -Name ActiveDirectory){ Remove-Module ActiveDirectory -ErrorAction SilentlyCon...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/HelloWorldExample/Get-Helloworld.Tests.ps1
Get-Helloworld.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Describe "Get-Helloworld" { It "outputs 'Hello world!'" { Get-HelloWorld | Should Be 'Hello world!' } }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/HelloWorldExample/Get-Helloworld.ps1
Get-Helloworld.ps1
function Get-Helloworld { return 'Hello World!' }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/2_BasicPesterExamples/2_BasicPesterExamples.ps1
2_BasicPesterExamples.ps1
function 2_BasicPesterExamples { }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/2_BasicPesterExamples/2_BasicPesterExamples.Tests.ps1
2_BasicPesterExamples.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Describe "This describes what we should do" { Context "Additional sectioning off of data to test"{ } Context "More additional sectioning off of data to...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/PesterIntro/PesterIntro.Tests.ps1
PesterIntro.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Describe "PesterIntro" { It "should exist" { 'C:\Pester\PesterIntro\PesterIntro.ps1' | Should Exist } }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/PesterIntro/PesterIntro.ps1
PesterIntro.ps1
function PesterIntro { }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/4_BasicPesterExamples/4_BasicPesterExamples.Tests.ps1
4_BasicPesterExamples.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Function Assert-OddOrEven{ Param( [parameter(ValueFromPipeline)] $Number ) Process{ Switch((1 -band $Number)){ 0...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/4_BasicPesterExamples/4_BasicPesterExamples.ps1
4_BasicPesterExamples.ps1
function 4_BasicPesterExamples { }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/24dir/calculator/calculator.ps1
calculator.ps1
function calculator { } function add($x,$y){ return $x+$y; }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/24dir/calculator/calculator.Tests.ps1
calculator.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Describe "calculator" { It "should add two numbers" { add 1 2 | Should Be 3 } }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/TestCase/TestCase.Tests.ps1
TestCase.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Describe "TestCase" { It "does something useful" { $false | Should Be $false } }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/TestCase/TestCase.ps1
TestCase.ps1
function TestCase { }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/3_BasicPesterExamples/3_BasicPesterExamples.ps1
3_BasicPesterExamples.ps1
function 3_BasicPesterExamples { }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester/3_BasicPesterExamples/3_BasicPesterExamples.Tests.ps1
3_BasicPesterExamples.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Describe "Boolean Tests" { Context '$True tests'{ It 'Should be $True'{ $true | Should Be $true } It 'Should be $True'...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Pester.Tests.ps1
Pester.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $manifestPath = "$here\Pester.psd1" $changeLogPath = "$here\CHANGELOG.md" # DO NOT CHANGE THIS TAG NAME; IT AFFECTS THE CI BUILD. Describe -Tags 'VersionChecks' "Pester manifest and changelog" { $script:manifest = $null It "has a valid manife...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/build.psake.ps1
build.psake.ps1
$psake.use_exit_on_error = $true properties { $currentDir = resolve-path . $Invocation = (Get-Variable MyInvocation -Scope 1).Value $baseDir = $psake.build_script_dir $version = git.exe describe --abbrev=0 --tags $nugetExe = "$baseDir\vendor\tools\nuget" $targetBase = "tools" } Task d...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/chocolateyInstall.ps1
chocolateyInstall.ps1
[CmdletBinding()] param ( ) end { $modulePath = Join-Path $env:ProgramFiles WindowsPowerShell\Modules $targetDirectory = Join-Path $modulePath Pester $scriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent $sourceDirectory = Join-Path $scriptRoot Tools if ($PSVersionTable...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Examples/Validator/Validator.Tests.ps1
Validator.Tests.ps1
function MyValidator($thing_to_validate) { return $thing_to_validate.StartsWith("s") } function Invoke-SomethingThatUsesMyValidator { param( [ValidateScript({MyValidator $_})] $some_param ) } Describe "Testing a validator" { It "calls MyValidator" { Mock MyVali...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Examples/Calculator/Add-Numbers.ps1
Add-Numbers.ps1
function Add-Numbers($a, $b) { return $a + $b }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Examples/Calculator/Add-Numbers.Tests.ps1
Add-Numbers.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path . "$here\Add-Numbers.ps1" Describe -Tags "Example" "Add-Numbers" { It "adds positive numbers" { Add-Numbers 2 3 | Should Be 5 } It "adds negative numbers" { Add-Numbers (-2) (-2) | Should Be (-4) } It "adds one ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/It.Tests.ps1
It.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe 'Get-PesterResult' { } Describe 'It - Implementation' { $testState = New-PesterState -Path $TestDrive It 'Throws an error if It is called outside of Describe' { $scriptBlock = { ItImpl -Pester $testState ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/TestsRunningInCleanRunspace.Tests.ps1
TestsRunningInCleanRunspace.Tests.ps1
function Invoke-PesterInJob ($ScriptBlock, [switch] $GenerateNUnitReport) { $PesterPath = Get-Module Pester | Select-Object -First 1 -ExpandProperty Path $job = Start-Job { param ($PesterPath, $TestDrive, $ScriptBlock, $GenerateNUnitReport) Import-Module $PesterPath -Force | Out-Null ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/TestDrive.ps1
TestDrive.ps1
# function New-TestDrive ([Switch]$PassThru) { $Path = New-RandomTempDirectory $DriveName = "TestDrive" if (-not (& $SafeCommands['Test-Path'] -Path $Path)) { & $SafeCommands['New-Item'] -ItemType Container -Path $Path | & $SafeCommands['Out-Null'] } #setup the test drive ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/BreakAndContinue.Tests.ps1
BreakAndContinue.Tests.ps1
Describe 'Clean handling of break and continue' { # If this test 'fails', it'll just cause most of the rest of the tests to never execute (and we won't see any actual failures.) # The CI job monitors metrics, though, and will fail the build if the number of tests drops too much. Context 'Break' { ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/New-Fixture.ps1
New-Fixture.ps1
function New-Fixture { <# .SYNOPSIS This function generates two scripts, one that defines a function and another one that contains its tests. .DESCRIPTION This function generates two scripts, one that defines a function and another one that contains its tests. The files are by defau...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/TestResults.ps1
TestResults.ps1
function Get-HumanTime($Seconds) { if($Seconds -gt 0.99) { $time = [math]::Round($Seconds, 2) $unit = 's' } else { $time = [math]::Floor($Seconds * 1000) $unit = 'ms' } return "$time$unit" } function GetFullPath ([string]$Path) { if (-not [System.IO....
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/TestDrive.Tests.ps1
TestDrive.Tests.ps1
Set-StrictMode -Version Latest $tempPath = (Get-Item $env:temp).FullName Describe "Setup" { It "returns a location that is in a temp area" { $testDrivePath = (Get-Item $TestDrive).FullName $testDrivePath -like "$tempPath*" | Should Be $true } It "creates a drive location called ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/InModuleScope.Tests.ps1
InModuleScope.Tests.ps1
Set-StrictMode -Version Latest Describe "Module scope separation" { Context "When users define variables with the same name as Pester parameters" { $test = "This is a test." It "does not hide user variables" { $test | Should Be 'This is a test.' } } It "Does...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/In.Tests.ps1
In.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "the In statement" { Setup -Dir "test_path" It "executes a command in that directory" { In "$TestDrive" -Execute { "" | Out-File "test_file" } "$TestDrive\test_file" | Should Exist } ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/SetupTeardown.ps1
SetupTeardown.ps1
function BeforeEach { <# .SYNOPSIS Defines a series of steps to perform at the beginning of every It block within the current Context or Describe block. .DESCRIPTION BeforeEach, AfterEach, BeforeAll, and AfterAll are unique in that they apply to the entire Context or Describe block, regardless...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/GlobalMock-B.Tests.ps1
GlobalMock-B.Tests.ps1
# This test depends on some state set up in GlobalMock-A.Tests.ps1. The behavior we're verifying # is that global functions that have been mocked are still properly set up even after the test # script exits its scope. $functionName = '01c1a57716fe4005ac1a7bf216f38ad0' try { Describe 'Mocking Global Funct...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Coverage.ps1
Coverage.ps1
if ($PSVersionTable.PSVersion.Major -le 2) { function Exit-CoverageAnalysis { } function Get-CoverageReport { } function Show-CoverageReport { } function Enter-CoverageAnalysis { param ( $CodeCoverage ) if ($CodeCoverage) { & $SafeCommands['Write-Error'] 'Code coverage analysis ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/New-Fixture.Tests.ps1
New-Fixture.Tests.ps1
Set-StrictMode -Version Latest Describe "New-Fixture" { It "Name parameter is mandatory:" { (get-command New-Fixture ).Parameters.Name.ParameterSets.__AllParameterSets.IsMandatory | Should Be $true } Context "Only Name parameter is specified:" { It "Creates fixture in current direc...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Describe.Tests.ps1
Describe.Tests.ps1
Set-StrictMode -Version Latest Describe 'Testing Describe' { It 'Has a non-mandatory fixture parameter which throws the proper error message if missing' { $command = Get-Command Describe -Module Pester $command | Should Not Be $null $parameter = $command.Parameters['Fixture'] ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Context.Tests.ps1
Context.Tests.ps1
Set-StrictMode -Version Latest Describe 'Testing Context' { It 'Has a non-mandatory fixture parameter which throws the proper error message if missing' { $command = Get-Command Context -Module Pester $command | Should Not Be $null $parameter = $command.Parameters['Fixture'] ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/TestResults.Tests.ps1
TestResults.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "Write nunit test results (Legacy)" { Setup -Dir "Results" It "should write a successful test result" { #create state $TestResults = New-PesterState -Path TestDrive:\ $testResults.EnterDescr...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/PesterState.ps1
PesterState.ps1
function New-PesterState { param ( [String[]]$TagFilter, [String[]]$ExcludeTagFilter, [String[]]$TestNameFilter, [System.Management.Automation.SessionState]$SessionState, [Switch]$Strict, [Switch]$Quiet, [object]$PesterOption ) if ($null -...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/PesterState.Tests.ps1
PesterState.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "New-PesterState" { Context "TestNameFilter parameter is set" { $p = new-pesterstate -TestNameFilter "filter" it "sets the TestNameFilter property" { $p.TestNameFilter | should be "filter" ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Context.ps1
Context.ps1
function Context { <# .SYNOPSIS Provides logical grouping of It blocks within a single Describe block. Any Mocks defined inside a Context are removed at the end of the Context scope, as are any files or folders added to the TestDrive during the Context block's execution. Any BeforeEach or AfterEach blocks defined...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Mock.Tests.ps1
Mock.Tests.ps1
Set-StrictMode -Version Latest function FunctionUnderTest { [CmdletBinding()] param ( [Parameter(Mandatory=$false)] [string] $param1 ) return "I am a real world test" } function FunctionUnderTestWithoutParams([string]$param1) { return "I am a real world test...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Coverage.Tests.ps1
Coverage.Tests.ps1
if ($PSVersionTable.PSVersion.Major -le 2) { return } InModuleScope Pester { Describe 'Code Coverage Analysis' { $root = (Get-PSDrive TestDrive).Root $null = New-Item -Path $root\TestScript.ps1 -ItemType File -ErrorAction SilentlyContinue Set-Content -Path $root\TestScript.ps1 -Va...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/It.ps1
It.ps1
function It { <# .SYNOPSIS Validates the results of a test inside of a Describe block. .DESCRIPTION The It command is intended to be used inside of a Describe or Context Block. If you are familiar with the AAA pattern (Arrange-Act-Assert), the body of the It block is the appropriate location for an assert. The...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/In.ps1
In.ps1
function In { <# .SYNOPSIS A convenience function that executes a script from a specified path. .DESCRIPTION Before the script block passed to the execute parameter is invoked, the current location is set to the path specified. Once the script block has been executed, the location will be reset to the location...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/SetupTeardown.Tests.ps1
SetupTeardown.Tests.ps1
Describe 'Describe-Scoped Test Case setup' { BeforeEach { $testVariable = 'From BeforeEach' } $testVariable = 'Set in Describe' It 'Assigns the correct value in first test' { $testVariable | Should Be 'From BeforeEach' $testVariable = 'Set in It' } It 'Assi...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/GlobalMock-A.Tests.ps1
GlobalMock-A.Tests.ps1
# This script exists to create and mock a global function, then exit. The actual behavior # that we need to test is covered in GlobalMock-B.Tests.ps1, where we make sure that the # global function was properly restored in its scope. $functionName = '01c1a57716fe4005ac1a7bf216f38ad0' if (Test-Path Function:\$fu...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/InModuleScope.ps1
InModuleScope.ps1
function InModuleScope { <# .SYNOPSIS Allows you to execute parts of a test script within the scope of a PowerShell script module. .DESCRIPTION By injecting some test code into the scope of a PowerShell script module, you can use non-exported functions, aliases and variables inside that module, ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Mock.ps1
Mock.ps1
function Mock { <# .SYNOPSIS Mocks the behavior of an existing command with an alternate implementation. .DESCRIPTION This creates new behavior for any existing command within the scope of a Describe or Context block. The function allows you to specify a script block that will become the command's new behav...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Describe.ps1
Describe.ps1
function Describe { <# .SYNOPSIS Creates a logical group of tests. All Mocks and TestDrive contents defined within a Describe block are scoped to that Describe; they will no longer be present when the Describe block exits. A Describe block may contain any number of Context and It blocks. .PARAMETER Name The...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Match.ps1
Match.ps1
function PesterMatch($value, $expectedMatch) { return ($value -match $expectedMatch) } function PesterMatchFailureMessage($value, $expectedMatch) { return "Expected: {$value} to match the expression {$expectedMatch}" } function NotPesterMatchFailureMessage($value, $expectedMatch) { return "Expe...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/MatchExactly.Tests.ps1
MatchExactly.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "MatchExactly" { It "returns true for things that match exactly" { PesterMatchExactly "foobar" "ob" | Should Be $true } It "returns false for things that do not match exactly" { PesterMatchExact...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Set-TestInconclusive.ps1
Set-TestInconclusive.ps1
function New-InconclusiveErrorRecord ([string] $Message, [string] $File, [string] $Line, [string] $LineText) { $exception = New-Object Exception $Message $errorID = 'PesterTestInconclusive' $errorCategory = [Management.Automation.ErrorCategory]::InvalidResult # we use ErrorRecord.TargetObject to pas...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/PesterThrow.Tests.ps1
PesterThrow.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "PesterThrow" { It "returns true if the statement throws an exception" { Test-PositiveAssertion (PesterThrow { throw }) } It "returns false if the statement does not throw an exception" { Test-N...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeNullOrEmpty.ps1
BeNullOrEmpty.ps1
function PesterBeNullOrEmpty($value) { if ($null -eq $value) { return $true } if ([String] -eq $value.GetType()) { return [String]::IsNullOrEmpty($value) } if ($null -ne $value.PSObject.Properties['Count'] -and $null -ne $value.Count) { return $value.Count ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeLikeExactly.ps1
BeLikeExactly.ps1
function PesterBeLikeExactly($value, $expectedMatch) { return ($value -clike $expectedMatch) } function PesterBeLikeExactlyFailureMessage($value, $expectedMatch) { return "Expected: {$value} to be exactly like the wildcard {$expectedMatch}" } function NotPesterBeLikeExactlyFailureMessage($value, $ex...