PowershellModule_Transcript.txt

**********************
Windows PowerShell transcript start
Start time: 20181012145034
Username: User Manager\ContainerAdministrator
RunAs User: User Manager\ContainerAdministrator
Machine: 84101395262E (Microsoft Windows NT 10.0.14393.0)
Host Application: powershell.exe -ExecutionPolicy ByPass -EncodedCommand LgAgAEMAOgBcAFAAbwB3AGUAcgBzAGgAZQBsAGwATQBvAGQAdQBsAGUAXwBTAHQAYQByAHQAVABlAHMAdAAuAHAAcwAxAA==
Process ID: 4204
PSVersion: 5.1.14393.2312
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14393.2312
BuildVersion: 10.0.14393.2312
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is C:\projects\psmodulesdsc\PowershellModule_Transcript.txt
[Build Info] [UTC 10/12/2018 14:50:34] Installing Pester.
[Build Info] [UTC 10/12/2018 14:51:08] Invoking pester on all tests in the path: C:\projects\psmodulesdsc\Tests\Unit\PowershellModule.tests.ps1
[Build Info] [UTC 10/12/2018 14:51:08] Using these files to calculate code coverage: C:\projects\psmodulesdsc\DSCClassResources\PowershellModule\PowershellModule.psm1
Executing all tests in 'C:\projects\psmodulesdsc\Tests\Unit\PowershellModule.tests.ps1'
 
Executing script C:\projects\psmodulesdsc\Tests\Unit\PowershellModule.tests.ps1
 
  Describing PowershellModule
 
    Context When the GetPSBoundParameters method is called
      [+] Should not throw
2.82s
      [+] Should be a hashtable
146ms
      [+] Should return the expected properties
76ms
 
    Context When the Get method is called
      [+] Should not throw
209ms
      [+] Should return a type of PowershellModule
173ms
      [+] Should call Get-Module one time
575ms
      [+] Should return null if module does not exist
62ms
      [+] Should return name and version if module does exist
47ms
 
    Context When the Test method is called
      [+] Should not throw
118ms
      [+] Should return a type of "boolean"
45ms
 
      Context Ensure = Present
        [+] Should return $false when module does not exist
89ms
        [+] Should return $false when module version is incorrect
221ms
        [+] Should return $false when module count is incorrect
103ms
        [+] Should return $true when module does exist
93ms
 
      Context Ensure = Absent
        [+] Should return $false when module does exist
64ms
        [+] Should return $true when module does not exist
26ms
 
    Context When the Set method is called
      [+] Should not throw
192ms
      [+] Should call Install-Module if Ensure is Present
244ms
      [+] Should call Uninstall-Module then Install-Module if Ensure is Present and Version -lt desired
116ms
      [+] Should call Uninstall-Module then Install-Module if Ensure is Present and Version -gt desired
324ms
      [+] Should call Uninstall-Module if Ensure is Absent
90ms
Tests completed in 5.85s
Tests Passed: 21,
Failed: 0,
Skipped: 0,
Pending: 0,
Inconclusive: 0
 
Code coverage report:
Covered 100.00 % of 69 analyzed Commands in 1 File.
VERBOSE: Tests ran for 00:49 minutes.
**********************
Windows PowerShell transcript end
End time: 20181012145124
**********************