PowershellModule_TestsResults.json

{"TagFilter":null,"ExcludeTagFilter":null,"TestNameFilter":null,"TotalCount":21,"PassedCount":21,"FailedCount":0,"SkippedCount":0,"PendingCount":0,"InconclusiveCount":0,"Time":{"Ticks":58461466,"Days":0,"Hours":0,"Milliseconds":846,"Minutes":0,"Seconds":5,"TotalDays":6.7663733796296288E-05,"TotalHours":0.001623929611111111,"TotalMilliseconds":5846.1466,"TotalMinutes":0.097435776666666668,"TotalSeconds":5.8461466},"TestResult":[{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":28230619,"Days":0,"Hours":0,"Milliseconds":823,"Minutes":0,"Seconds":2,"TotalDays":3.2674327546296292E-05,"TotalHours":0.00078418386111111106,"TotalMilliseconds":2823.0619,"TotalMinutes":0.047051031666666666,"TotalSeconds":2.8230619},"Name":"Should not throw","Result":"Passed","Context":"When the GetPSBoundParameters method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1469512,"Days":0,"Hours":0,"Milliseconds":146,"Minutes":0,"Seconds":0,"TotalDays":1.7008240740740741E-06,"TotalHours":4.0819777777777774E-05,"TotalMilliseconds":146.9512,"TotalMinutes":0.0024491866666666666,"TotalSeconds":0.1469512},"Name":"Should be a hashtable","Result":"Passed","Context":"When the GetPSBoundParameters method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":768514,"Days":0,"Hours":0,"Milliseconds":76,"Minutes":0,"Seconds":0,"TotalDays":8.8948379629629625E-07,"TotalHours":2.1347611111111111E-05,"TotalMilliseconds":76.8514,"TotalMinutes":0.0012808566666666667,"TotalSeconds":0.0768514},"Name":"Should return the expected properties","Result":"Passed","Context":"When the GetPSBoundParameters method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":2092948,"Days":0,"Hours":0,"Milliseconds":209,"Minutes":0,"Seconds":0,"TotalDays":2.4223935185185183E-06,"TotalHours":5.8137444444444439E-05,"TotalMilliseconds":209.2948,"TotalMinutes":0.0034882466666666667,"TotalSeconds":0.2092948},"Name":"Should not throw","Result":"Passed","Context":"When the Get method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1736501,"Days":0,"Hours":0,"Milliseconds":173,"Minutes":0,"Seconds":0,"TotalDays":2.0098391203703705E-06,"TotalHours":4.8236138888888885E-05,"TotalMilliseconds":173.6501,"TotalMinutes":0.0028941683333333335,"TotalSeconds":0.1736501},"Name":"Should return a type of PowershellModule","Result":"Passed","Context":"When the Get method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":5751717,"Days":0,"Hours":0,"Milliseconds":575,"Minutes":0,"Seconds":0,"TotalDays":6.6570798611111111E-06,"TotalHours":0.00015976991666666665,"TotalMilliseconds":575.1717,"TotalMinutes":0.009586195,"TotalSeconds":0.5751717},"Name":"Should call Get-Module one time","Result":"Passed","Context":"When the Get method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":622685,"Days":0,"Hours":0,"Milliseconds":62,"Minutes":0,"Seconds":0,"TotalDays":7.2070023148148141E-07,"TotalHours":1.7296805555555555E-05,"TotalMilliseconds":62.2685,"TotalMinutes":0.0010378083333333332,"TotalSeconds":0.0622685},"Name":"Should return null if module does not exist","Result":"Passed","Context":"When the Get method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":471331,"Days":0,"Hours":0,"Milliseconds":47,"Minutes":0,"Seconds":0,"TotalDays":5.4552199074074074E-07,"TotalHours":1.3092527777777778E-05,"TotalMilliseconds":47.1331,"TotalMinutes":0.00078555166666666664,"TotalSeconds":0.0471331},"Name":"Should return name and version if module does exist","Result":"Passed","Context":"When the Get method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1183645,"Days":0,"Hours":0,"Milliseconds":118,"Minutes":0,"Seconds":0,"TotalDays":1.3699594907407407E-06,"TotalHours":3.2879027777777774E-05,"TotalMilliseconds":118.3645,"TotalMinutes":0.0019727416666666668,"TotalSeconds":0.1183645},"Name":"Should not throw","Result":"Passed","Context":"When the Test method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":450001,"Days":0,"Hours":0,"Milliseconds":45,"Minutes":0,"Seconds":0,"TotalDays":5.2083449074074071E-07,"TotalHours":1.2500027777777778E-05,"TotalMilliseconds":45.0001,"TotalMinutes":0.00075000166666666667,"TotalSeconds":0.0450001},"Name":"Should return a type of \"boolean\"","Result":"Passed","Context":"When the Test method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":899590,"Days":0,"Hours":0,"Milliseconds":89,"Minutes":0,"Seconds":0,"TotalDays":1.0411921296296297E-06,"TotalHours":2.4988611111111109E-05,"TotalMilliseconds":89.959,"TotalMinutes":0.0014993166666666666,"TotalSeconds":0.089959},"Name":"Should return $false when module does not exist","Result":"Passed","Context":"When the Test method is called\\Ensure = Present","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":2219874,"Days":0,"Hours":0,"Milliseconds":221,"Minutes":0,"Seconds":0,"TotalDays":2.5692986111111111E-06,"TotalHours":6.1663166666666669E-05,"TotalMilliseconds":221.9874,"TotalMinutes":0.00369979,"TotalSeconds":0.2219874},"Name":"Should return $false when module version is incorrect","Result":"Passed","Context":"When the Test method is called\\Ensure = Present","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1030970,"Days":0,"Hours":0,"Milliseconds":103,"Minutes":0,"Seconds":0,"TotalDays":1.1932523148148147E-06,"TotalHours":2.8638055555555554E-05,"TotalMilliseconds":103.09700000000001,"TotalMinutes":0.0017182833333333333,"TotalSeconds":0.103097},"Name":"Should return $false when module count is incorrect","Result":"Passed","Context":"When the Test method is called\\Ensure = Present","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":935551,"Days":0,"Hours":0,"Milliseconds":93,"Minutes":0,"Seconds":0,"TotalDays":1.0828136574074073E-06,"TotalHours":2.5987527777777777E-05,"TotalMilliseconds":93.55510000000001,"TotalMinutes":0.0015592516666666667,"TotalSeconds":0.0935551},"Name":"Should return $true when module does exist","Result":"Passed","Context":"When the Test method is called\\Ensure = Present","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":640614,"Days":0,"Hours":0,"Milliseconds":64,"Minutes":0,"Seconds":0,"TotalDays":7.4145138888888883E-07,"TotalHours":1.7794833333333331E-05,"TotalMilliseconds":64.0614,"TotalMinutes":0.00106769,"TotalSeconds":0.064061399999999991},"Name":"Should return $false when module does exist","Result":"Passed","Context":"When the Test method is called\\Ensure = Absent","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":265988,"Days":0,"Hours":0,"Milliseconds":26,"Minutes":0,"Seconds":0,"TotalDays":3.0785648148148148E-07,"TotalHours":7.388555555555555E-06,"TotalMilliseconds":26.5988,"TotalMinutes":0.00044331333333333335,"TotalSeconds":0.0265988},"Name":"Should return $true when module does not exist","Result":"Passed","Context":"When the Test method is called\\Ensure = Absent","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1925053,"Days":0,"Hours":0,"Milliseconds":192,"Minutes":0,"Seconds":0,"TotalDays":2.2280706018518516E-06,"TotalHours":5.3473694444444441E-05,"TotalMilliseconds":192.5053,"TotalMinutes":0.0032084216666666667,"TotalSeconds":0.1925053},"Name":"Should not throw","Result":"Passed","Context":"When the Set method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":2448587,"Days":0,"Hours":0,"Milliseconds":244,"Minutes":0,"Seconds":0,"TotalDays":2.8340127314814815E-06,"TotalHours":6.8016305555555556E-05,"TotalMilliseconds":244.8587,"TotalMinutes":0.004080978333333333,"TotalSeconds":0.24485869999999998},"Name":"Should call Install-Module if Ensure is Present","Result":"Passed","Context":"When the Set method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":1167146,"Days":0,"Hours":0,"Milliseconds":116,"Minutes":0,"Seconds":0,"TotalDays":1.3508634259259259E-06,"TotalHours":3.2420722222222224E-05,"TotalMilliseconds":116.7146,"TotalMinutes":0.0019452433333333333,"TotalSeconds":0.11671459999999999},"Name":"Should call Uninstall-Module then Install-Module if Ensure is Present and Version -lt desired","Result":"Passed","Context":"When the Set method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":3243764,"Days":0,"Hours":0,"Milliseconds":324,"Minutes":0,"Seconds":0,"TotalDays":3.7543564814814815E-06,"TotalHours":9.0104555555555556E-05,"TotalMilliseconds":324.3764,"TotalMinutes":0.0054062733333333337,"TotalSeconds":0.3243764},"Name":"Should call Uninstall-Module then Install-Module if Ensure is Present and Version -gt desired","Result":"Passed","Context":"When the Set method is called","StackTrace":""},{"ErrorRecord":null,"ParameterizedSuiteName":"","Describe":"PowershellModule","Parameters":{},"Passed":true,"Show":1023,"FailureMessage":"","Time":{"Ticks":906856,"Days":0,"Hours":0,"Milliseconds":90,"Minutes":0,"Seconds":0,"TotalDays":1.0496018518518518E-06,"TotalHours":2.5190444444444444E-05,"TotalMilliseconds":90.685600000000008,"TotalMinutes":0.0015114266666666667,"TotalSeconds":0.090685599999999991},"Name":"Should call Uninstall-Module if Ensure is Absent","Result":"Passed","Context":"When the Set method is called","StackTrace":""}],"CodeCoverage":{"NumberOfCommandsAnalyzed":69,"NumberOfFilesAnalyzed":1,"NumberOfCommandsExecuted":69,"NumberOfCommandsMissed":0,"MissedCommands":[],"HitCommands":[{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":45,"Function":"Get","Command":"$Module = Get-Module -Name $this.Name -ListAvailable | Where-Object { $_.RepositorySourceLocation }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":45,"Function":"Get","Command":"$Module = Get-Module -Name $this.Name -ListAvailable | Where-Object { $_.RepositorySourceLocation }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":45,"Function":"Get","Command":"$_.RepositorySourceLocation"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":47,"Function":"Get","Command":"if ($Module)\r\n {\r\n $this.Name = $Module.Name\r\n $this.RequiredVersion = $Module.Version\r\n $this.Repository = $Module.RepositorySourceLocation\r\n }\r\n else\r\n {\r\n $this.Name = $null\r\n $this.RequiredVersion = $null\r\n $this.Repository = $null\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":49,"Function":"Get","Command":"$this.Name = $Module.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":50,"Function":"Get","Command":"$this.RequiredVersion = $Module.Version"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":51,"Function":"Get","Command":"$this.Repository = $Module.RepositorySourceLocation"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":55,"Function":"Get","Command":"$this.Name = $null"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":56,"Function":"Get","Command":"$this.RequiredVersion = $null"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":57,"Function":"Get","Command":"$this.Repository = $null"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":60,"Function":"Get","Command":"return $this"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":65,"Function":"Set","Command":"$PSBoundParameters = $this.GetPSBoundParameters()"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":66,"Function":"Set","Command":"$Modules = Get-Module -Name $this.Name -ListAvailable | Where-Object { $_.RepositorySourceLocation }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":66,"Function":"Set","Command":"$Modules = Get-Module -Name $this.Name -ListAvailable | Where-Object { $_.RepositorySourceLocation }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":66,"Function":"Set","Command":"$_.RepositorySourceLocation"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":68,"Function":"Set","Command":"if ($this.Ensure -eq [Ensure]::Present)\r\n {\r\n if ($this.RequiredVersion -and ($Modules.Version -notcontains $this.RequiredVersion))\r\n {\r\n Write-Verbose -Message \"Installing module [$($this.Name)].\"\r\n Install-Module @PSBoundParameters -Scope AllUsers -Force\r\n }\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":70,"Function":"Set","Command":"if ($this.RequiredVersion -and ($Modules.Version -notcontains $this.RequiredVersion))\r\n {\r\n Write-Verbose -Message \"Installing module [$($this.Name)].\"\r\n Install-Module @PSBoundParameters -Scope AllUsers -Force\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":70,"Function":"Set","Command":"$Modules.Version -notcontains $this.RequiredVersion"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":72,"Function":"Set","Command":"Write-Verbose -Message \"Installing module [$($this.Name)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":72,"Function":"Set","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":73,"Function":"Set","Command":"Install-Module @PSBoundParameters -Scope AllUsers -Force"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":77,"Function":"Set","Command":"$PSBoundParameters.Remove(\u0027Repository\u0027)"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":78,"Function":"Set","Command":"$Modules"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":80,"Function":"Set","Command":"if ($this.Ensure -eq [Ensure]::Present)\r\n {\r\n if ($Module.Version -ne $this.RequiredVersion)\r\n {\r\n Write-Verbose -Message \"Removing side-by-side module [$($Module.Name)] with version [$($Module.Version)].\"\r\n Get-InstalledModule @PSBoundParameters | Uninstall-Module -Force\r\n }\r\n }\r\n elseif ($this.Ensure -eq [Ensure]::Absent)\r\n {\r\n Write-Verbose -Message \"Removing module [$($Module.Name)].\"\r\n Get-InstalledModule @PSBoundParameters | Uninstall-Module -Force\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":82,"Function":"Set","Command":"if ($Module.Version -ne $this.RequiredVersion)\r\n {\r\n Write-Verbose -Message \"Removing side-by-side module [$($Module.Name)] with version [$($Module.Version)].\"\r\n Get-InstalledModule @PSBoundParameters | Uninstall-Module -Force\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":84,"Function":"Set","Command":"Write-Verbose -Message \"Removing side-by-side module [$($Module.Name)] with version [$($Module.Version)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":84,"Function":"Set","Command":"$Module.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":84,"Function":"Set","Command":"$Module.Version"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":85,"Function":"Set","Command":"Get-InstalledModule @PSBoundParameters"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":85,"Function":"Set","Command":"Uninstall-Module -Force"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":88,"Function":"Set","Command":"if ($this.Ensure -eq [Ensure]::Present)\r\n {\r\n if ($Module.Version -ne $this.RequiredVersion)\r\n {\r\n Write-Verbose -Message \"Removing side-by-side module [$($Module.Name)] with version [$($Module.Version)].\"\r\n Get-InstalledModule @PSBoundParameters | Uninstall-Module -Force\r\n }\r\n }\r\n elseif ($this.Ensure -eq [Ensure]::Absent)\r\n {\r\n Write-Verbose -Message \"Removing module [$($Module.Name)].\"\r\n Get-InstalledModule @PSBoundParameters | Uninstall-Module -Force\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":90,"Function":"Set","Command":"Write-Verbose -Message \"Removing module [$($Module.Name)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":90,"Function":"Set","Command":"$Module.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":91,"Function":"Set","Command":"Get-InstalledModule @PSBoundParameters"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":91,"Function":"Set","Command":"Uninstall-Module -Force"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":98,"Function":"Test","Command":"$Module = Get-Module -Name $this.Name -ListAvailable | Where-Object { $_.RepositorySourceLocation }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":98,"Function":"Test","Command":"$Module = Get-Module -Name $this.Name -ListAvailable | Where-Object { $_.RepositorySourceLocation }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":98,"Function":"Test","Command":"$_.RepositorySourceLocation"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":99,"Function":"Test","Command":"$Result = $true"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":101,"Function":"Test","Command":"if ($this.Ensure -eq [Ensure]::Present)\r\n {\r\n if ($Module.Count -ne 1)\r\n {\r\n Write-Verbose -Message \"Expected a single instance of module [$($this.Name)] but was [$($Module.Count)].\"\r\n $Result = $false\r\n }\r\n\r\n if ($this.RequiredVersion -and ($Module.Version -ne $this.RequiredVersion))\r\n {\r\n Write-Verbose -Message \"Expected module version [$($this.RequiredVersion)] but was [$($Module.Version)].\"\r\n $Result = $false\r\n }\r\n\r\n if ($Module.Name -ne $this.Name)\r\n {\r\n Write-Verbose -Message \"Expected module [$($this.Name)] but was [$($Module.Name)].\"\r\n $Result = $false\r\n }\r\n }\r\n elseif ($this.Ensure -eq [Ensure]::Absent)\r\n {\r\n if ($Module.Count -gt 0)\r\n {\r\n Write-Verbose -Message \"Expected no instances of module [$($this.Name)] but was [$($Module.Count)].\"\r\n $Result = $false\r\n }\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":103,"Function":"Test","Command":"if ($Module.Count -ne 1)\r\n {\r\n Write-Verbose -Message \"Expected a single instance of module [$($this.Name)] but was [$($Module.Count)].\"\r\n $Result = $false\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":105,"Function":"Test","Command":"Write-Verbose -Message \"Expected a single instance of module [$($this.Name)] but was [$($Module.Count)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":105,"Function":"Test","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":105,"Function":"Test","Command":"$Module.Count"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":106,"Function":"Test","Command":"$Result = $false"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":109,"Function":"Test","Command":"if ($this.RequiredVersion -and ($Module.Version -ne $this.RequiredVersion))\r\n {\r\n Write-Verbose -Message \"Expected module version [$($this.RequiredVersion)] but was [$($Module.Version)].\"\r\n $Result = $false\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":109,"Function":"Test","Command":"$Module.Version -ne $this.RequiredVersion"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":111,"Function":"Test","Command":"Write-Verbose -Message \"Expected module version [$($this.RequiredVersion)] but was [$($Module.Version)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":111,"Function":"Test","Command":"$this.RequiredVersion"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":111,"Function":"Test","Command":"$Module.Version"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":112,"Function":"Test","Command":"$Result = $false"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":115,"Function":"Test","Command":"if ($Module.Name -ne $this.Name)\r\n {\r\n Write-Verbose -Message \"Expected module [$($this.Name)] but was [$($Module.Name)].\"\r\n $Result = $false\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":117,"Function":"Test","Command":"Write-Verbose -Message \"Expected module [$($this.Name)] but was [$($Module.Name)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":117,"Function":"Test","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":117,"Function":"Test","Command":"$Module.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":118,"Function":"Test","Command":"$Result = $false"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":121,"Function":"Test","Command":"if ($this.Ensure -eq [Ensure]::Present)\r\n {\r\n if ($Module.Count -ne 1)\r\n {\r\n Write-Verbose -Message \"Expected a single instance of module [$($this.Name)] but was [$($Module.Count)].\"\r\n $Result = $false\r\n }\r\n\r\n if ($this.RequiredVersion -and ($Module.Version -ne $this.RequiredVersion))\r\n {\r\n Write-Verbose -Message \"Expected module version [$($this.RequiredVersion)] but was [$($Module.Version)].\"\r\n $Result = $false\r\n }\r\n\r\n if ($Module.Name -ne $this.Name)\r\n {\r\n Write-Verbose -Message \"Expected module [$($this.Name)] but was [$($Module.Name)].\"\r\n $Result = $false\r\n }\r\n }\r\n elseif ($this.Ensure -eq [Ensure]::Absent)\r\n {\r\n if ($Module.Count -gt 0)\r\n {\r\n Write-Verbose -Message \"Expected no instances of module [$($this.Name)] but was [$($Module.Count)].\"\r\n $Result = $false\r\n }\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":123,"Function":"Test","Command":"if ($Module.Count -gt 0)\r\n {\r\n Write-Verbose -Message \"Expected no instances of module [$($this.Name)] but was [$($Module.Count)].\"\r\n $Result = $false\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":125,"Function":"Test","Command":"Write-Verbose -Message \"Expected no instances of module [$($this.Name)] but was [$($Module.Count)].\""},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":125,"Function":"Test","Command":"$this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":125,"Function":"Test","Command":"$Module.Count"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":126,"Function":"Test","Command":"$Result = $false"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":130,"Function":"Test","Command":"return $Result"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":136,"Function":"GetPSBoundParameters","Command":"$PSBoundParameters = @{\r\n Name = $this.Name;\r\n Repository = $this.Repository;\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":137,"Function":"GetPSBoundParameters","Command":"Name = $this.Name"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":138,"Function":"GetPSBoundParameters","Command":"Repository = $this.Repository"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":141,"Function":"GetPSBoundParameters","Command":"if ($this.RequiredVersion)\r\n {\r\n $PSBoundParameters[\"RequiredVersion\"] = $this.RequiredVersion\r\n }"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":143,"Function":"GetPSBoundParameters","Command":"$PSBoundParameters[\"RequiredVersion\"] = $this.RequiredVersion"},{"File":"C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1","Line":146,"Function":"GetPSBoundParameters","Command":"return $PSBoundParameters"}],"AnalyzedFiles":["C:\\projects\\psmodulesdsc\\DSCClassResources\\PowershellModule\\PowershellModule.psm1"]}}