TestResult.xml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<test-results xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="nunit_schema_2.5.xsd" name="Pester" total="683" errors="0" failures="0" not-run="0" inconclusive="0" ignored="0" skipped="0" invalid="0" date="2018-06-11" time="10:55:45"> <environment user="Iain" machine-name="IBLAPTOP" cwd="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability" user-domain="IBLAPTOP" platform="Microsoft Windows 10 Enterprise|C:\WINDOWS|\Device\Harddisk1\Partition4" nunit-version="2.5.8.0" os-version="10.0.17134" clr-version="4.0.30319.42000" /> <culture-info current-culture="en-GB" current-uiculture="en-US" /> <test-suite type="TestFixture" name="Pester" executed="True" result="Success" success="True" time="75.3727" asserts="0" description="Pester"> <results> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Add-DiskImageHotfix.Tests.ps1" executed="True" result="Success" success="True" time="2.6486" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Add-DiskImageHotfix.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Add-DiskImageHotfix" executed="True" result="Success" success="True" time="2.6486" asserts="0" description="Src\Private\Add-DiskImageHotfix"> <results> <test-case description="Does not call "Add-WindowsPackage" for no hotfixes" name="Src\Private\Add-DiskImageHotfix.Does not call "Add-WindowsPackage" for no hotfixes" time="1.0204" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not call "Add-WindowsPackage" for no hotfixes" name="Src\Private\Add-DiskImageHotfix.Does not call "Add-WindowsPackage" for no hotfixes" time="0.1758" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Add-WindowsPackage" for a single hotfix" name="Src\Private\Add-DiskImageHotfix.Calls "Add-WindowsPackage" for a single hotfix" time="1.0097" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Add-WindowsPackage" for a single hotfix" name="Src\Private\Add-DiskImageHotfix.Calls "Add-WindowsPackage" for a single hotfix" time="0.084" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Add-WindowsPackage" for each hotfix with multiple hotfixes" name="Src\Private\Add-DiskImageHotfix.Calls "Add-WindowsPackage" for each hotfix with multiple hotfixes" time="0.1576" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Add-WindowsPackage" for each hotfix with multiple hotfixes" name="Src\Private\Add-DiskImageHotfix.Calls "Add-WindowsPackage" for each hotfix with multiple hotfixes" time="0.2011" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Assert-LabConfigurationMof.Tests.ps1" executed="True" result="Success" success="True" time="0.5946" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Assert-LabConfigurationMof.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Assert-LabConfigurationMof" executed="True" result="Success" success="True" time="0.5946" asserts="0" description="Unit\Src\Private\Assert-LabConfigurationMof"> <results> <test-case description="Throws if path is invalid" name="Unit\Src\Private\Assert-LabConfigurationMof.Throws if path is invalid" time="0.4492" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not throw if ".mof" and ".meta.mof" files exist" name="Unit\Src\Private\Assert-LabConfigurationMof.Does not throw if ".mof" and ".meta.mof" files exist" time="0.0279" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if ".mof" file is missing" name="Unit\Src\Private\Assert-LabConfigurationMof.Throws if ".mof" file is missing" time="0.0412" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Warns if ".meta.mof" file is missing" name="Unit\Src\Private\Assert-LabConfigurationMof.Warns if ".meta.mof" file is missing" time="0.0441" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Warns if ".mof" file is missing but -SkipMofCheck is specified" name="Unit\Src\Private\Assert-LabConfigurationMof.Warns if ".mof" file is missing but -SkipMofCheck is specified" time="0.0323" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter.Tests.ps1" executed="True" result="Success" success="True" time="0.5116" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter" executed="True" result="Success" success="True" time="0.5116" asserts="0" description="Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter"> <results> <test-case description="Should throw if mandatory parameters are missing" name="Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter.Should throw if mandatory parameters are missing" time="0.362" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should throw if VHD type and VHD path are specified" name="Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter.Should throw if VHD type and VHD path are specified" time="0.0168" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should throw if VHD size and VHD path are specified" name="Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter.Should throw if VHD size and VHD path are specified" time="0.0197" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should throw if VHD size is less than 3MB" name="Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter.Should throw if VHD size is less than 3MB" time="0.0228" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should throw if VHD size is greater than 2040GB" name="Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter.Should throw if VHD size is greater than 2040GB" time="0.0226" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should throw if VHD path is a directory path" name="Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter.Should throw if VHD path is a directory path" time="0.0216" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should throw if VHD type is VHD and virtual machine is generation 2" name="Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter.Should throw if VHD type is VHD and virtual machine is generation 2" time="0.0276" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should not throw if VHD type is VHDX and virtual machine is generation 2" name="Unit\Src\Private\Assert-VirtualMachineHardDiskDriveParameter.Should not throw if VHD type is VHDX and virtual machine is generation 2" time="0.0184" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Clear-LabVirtualMachine.Tests.ps1" executed="True" result="Success" success="True" time="0.4991" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Clear-LabVirtualMachine.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Clear-LabVirtualMachine" executed="True" result="Success" success="True" time="0.4991" asserts="0" description="Unit\Src\Private\Clear-LabVirtualMachine"> <results> <test-case description="Imports Hyper-V DSC resource" name="Unit\Src\Private\Clear-LabVirtualMachine.Imports Hyper-V DSC resource" time="0.3911" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Invokes Hyper-V DSC resource" name="Unit\Src\Private\Clear-LabVirtualMachine.Invokes Hyper-V DSC resource" time="0.066" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabVirtualMachineProperty" with "ConfigurationData" when specified (#97)" name="Unit\Src\Private\Clear-LabVirtualMachine.Calls "Get-LabVirtualMachineProperty" with "ConfigurationData" when specified (#97)" time="0.0421" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Convert-PSObjectToHashtable.Tests.ps1" executed="True" result="Success" success="True" time="0.5466" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Convert-PSObjectToHashtable.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Convert-PSObjectToHashtable" executed="True" result="Success" success="True" time="0.5466" asserts="0" description="Src\Private\Convert-PSObjectToHashtable"> <results> <test-case description="Returns a "System.Collections.Hashtable" object" name="Src\Private\Convert-PSObjectToHashtable.Returns a "System.Collections.Hashtable" object" time="0.44" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Converts property value types correctly" name="Src\Private\Convert-PSObjectToHashtable.Converts property value types correctly" time="0.0318" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Ignores "$null" values when specified" name="Src\Private\Convert-PSObjectToHashtable.Ignores "$null" values when specified" time="0.0174" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Converts nested "PSCustomObject" types to a hashtable" name="Src\Private\Convert-PSObjectToHashtable.Converts nested "PSCustomObject" types to a hashtable" time="0.0161" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Converts nested array "PSCustomObject" types to hashtables (#262)" name="Src\Private\Convert-PSObjectToHashtable.Converts nested array "PSCustomObject" types to hashtables (#262)" time="0.0209" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Converts nested array of "String" types to an array" name="Src\Private\Convert-PSObjectToHashtable.Converts nested array of "String" types to an array" time="0.0205" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Expand-LabImage.Tests.ps1" executed="True" result="Success" success="True" time="1.5416" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Expand-LabImage.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Expand-LabImage" executed="True" result="Success" success="True" time="1.5416" asserts="0" description="Src\Private\Expand-LabImage"> <results> <test-case description="Mounts ISO image" name="Src\Private\Expand-LabImage.Mounts ISO image" time="0.5003" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not Mount WIM image" name="Src\Private\Expand-LabImage.Does not Mount WIM image" time="0.053" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-WindowsImageByIndex" method when passing "WimImageName"" name="Src\Private\Expand-LabImage.Calls "Get-WindowsImageByIndex" method when passing "WimImageName"" time="0.1256" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-WindowsImage" with specified "WimImageIndex"" name="Src\Private\Expand-LabImage.Calls "Expand-WindowsImage" with specified "WimImageIndex"" time="0.1033" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-WindowsImage" with custom "WimPath"" name="Src\Private\Expand-LabImage.Calls "Expand-WindowsImage" with custom "WimPath"" time="0.0873" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Dismounts ISO image" name="Src\Private\Expand-LabImage.Dismounts ISO image" time="0.1012" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not dismount WIM image" name="Src\Private\Expand-LabImage.Does not dismount WIM image" time="0.1253" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Add-LabImageWindowsOptionalFeature" when "WindowsOptionalFeature" is defined" name="Src\Private\Expand-LabImage.Calls "Add-LabImageWindowsOptionalFeature" when "WindowsOptionalFeature" is defined" time="0.1677" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Add-LabImageWindowsOptionalFeature" with custom "SourcePath"" name="Src\Private\Expand-LabImage.Calls "Add-LabImageWindowsOptionalFeature" with custom "SourcePath"" time="0.1777" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Dismounts ISO image when error is thrown (#166)" name="Src\Private\Expand-LabImage.Dismounts ISO image when error is thrown (#166)" time="0.1001" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Expand-LabIso.Tests.ps1" executed="True" result="Success" success="True" time="0.5195" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Expand-LabIso.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Expand-LabIso" executed="True" result="Success" success="True" time="0.5195" asserts="0" description="Src\Private\Expand-LabIso"> <results> <test-case description="Mounts ISO image read-only" name="Src\Private\Expand-LabIso.Mounts ISO image read-only" time="0.3907" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Copies ISO image contents to destination path recursively" name="Src\Private\Expand-LabIso.Copies ISO image contents to destination path recursively" time="0.0648" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Disounts ISO image" name="Src\Private\Expand-LabIso.Disounts ISO image" time="0.0641" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Expand-LabModuleCache.Tests.ps1" executed="True" result="Success" success="True" time="0.6946" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Expand-LabModuleCache.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Expand-LabModuleCache" executed="True" result="Success" success="True" time="0.6946" asserts="0" description="Src\Private\Expand-LabModuleCache"> <results> <test-case description="Returns a [System.IO.DirectoryInfo] object type" name="Src\Private\Expand-LabModuleCache.Returns a [System.IO.DirectoryInfo] object type" time="0.3493" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Cleans existing module directory when "Clean" is specified" name="Src\Private\Expand-LabModuleCache.Cleans existing module directory when "Clean" is specified" time="0.0778" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-ZipArchive" when "PSGallery" Provider is specified" name="Src\Private\Expand-LabModuleCache.Calls "Expand-ZipArchive" when "PSGallery" Provider is specified" time="0.0504" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-GitHubZipArchive" when "GitHub" Provider is specified" name="Src\Private\Expand-LabModuleCache.Calls "Expand-GitHubZipArchive" when "GitHub" Provider is specified" time="0.0503" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-GitHubZipArchive" when "GitHub" Provider and "OverrideRepository" are specified" name="Src\Private\Expand-LabModuleCache.Calls "Expand-GitHubZipArchive" when "GitHub" Provider and "OverrideRepository" are specified" time="0.0593" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-ZipArchive" when "FileSystem" Provider is specified and "Path" is a .zip file" name="Src\Private\Expand-LabModuleCache.Calls "Expand-ZipArchive" when "FileSystem" Provider is specified and "Path" is a .zip file" time="0.0518" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Copy-Item" when "FileSystem" Provider is specified and "Path" is a directory" name="Src\Private\Expand-LabModuleCache.Calls "Copy-Item" when "FileSystem" Provider is specified and "Path" is a directory" time="0.0558" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Expand-LabResource.Tests.ps1" executed="True" result="Success" success="True" time="0.9482" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Expand-LabResource.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Expand-LabResource" executed="True" result="Success" success="True" time="0.9482" asserts="0" description="Unit\Src\Private\Expand-LabResource"> <results> <test-case description="Creates destination "Resources" directory if it does not exist on target file sytem" name="Unit\Src\Private\Expand-LabResource.Creates destination "Resources" directory if it does not exist on target file sytem" time="0.3184" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Invokes "Invoke-LabResourceDownload" with "ResourceId" if resource is not found" name="Unit\Src\Private\Expand-LabResource.Invokes "Invoke-LabResourceDownload" with "ResourceId" if resource is not found" time="0.0895" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Uses resource "Filename" property if specified" name="Unit\Src\Private\Expand-LabResource.Uses resource "Filename" property if specified" time="0.0797" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Copies resource by default" name="Unit\Src\Private\Expand-LabResource.Copies resource by default" time="0.0706" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Copies resource to explicit target destination path" name="Unit\Src\Private\Expand-LabResource.Copies resource to explicit target destination path" time="0.0582" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-ZipArchive" if "Expand" property is specified on a "ZIP" resource" name="Unit\Src\Private\Expand-LabResource.Calls "Expand-ZipArchive" if "Expand" property is specified on a "ZIP" resource" time="0.0649" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-ZipArchive" to explicit target path when "Expand" is specified on a "ZIP" resource" name="Unit\Src\Private\Expand-LabResource.Calls "Expand-ZipArchive" to explicit target path when "Expand" is specified on a "ZIP" resource" time="0.0628" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-LabIso" if "Expand" property is specified on an "ISO" resource" name="Unit\Src\Private\Expand-LabResource.Calls "Expand-LabIso" if "Expand" property is specified on an "ISO" resource" time="0.0634" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-LabIso" to explicit target path when "Expand" is specified on a "ISO" resource" name="Unit\Src\Private\Expand-LabResource.Calls "Expand-LabIso" to explicit target path when "Expand" is specified on a "ISO" resource" time="0.0745" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if "Expand" property is specified on an "EXE" resource" name="Unit\Src\Private\Expand-LabResource.Throws if "Expand" property is specified on an "EXE" resource" time="0.0663" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-ConfigurationData.Tests.ps1" executed="True" result="Success" success="True" time="0.7267" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-ConfigurationData.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Get-ConfigurationData" executed="True" result="Success" success="True" time="0.7267" asserts="0" description="Unit\Src\Private\Get-ConfigurationData"> <results> <test-case description="Adds missing "CustomBootstrapOrder" property to VM configuration" name="Unit\Src\Private\Get-ConfigurationData.Adds missing "CustomBootstrapOrder" property to VM configuration" time="0.3434" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Adds missing "SecureBoot" property to VM configuration" name="Unit\Src\Private\Get-ConfigurationData.Adds missing "SecureBoot" property to VM configuration" time="0.0496" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Adds missing "GuestIntegrationServices" property to VM configuration" name="Unit\Src\Private\Get-ConfigurationData.Adds missing "GuestIntegrationServices" property to VM configuration" time="0.0453" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Adds missing "OperatingSystem" property to CustomMedia configuration" name="Unit\Src\Private\Get-ConfigurationData.Adds missing "OperatingSystem" property to CustomMedia configuration" time="0.0467" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Adds missing "DisableLocalFileCaching" property to Host configuration" name="Unit\Src\Private\Get-ConfigurationData.Adds missing "DisableLocalFileCaching" property to Host configuration" time="0.0507" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Adds missing "EnableCallStackLogging" property to Host configuration" name="Unit\Src\Private\Get-ConfigurationData.Adds missing "EnableCallStackLogging" property to Host configuration" time="0.0487" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Removes deprecated "UpdatePath" property from Host configuration (Issue #77)" name="Unit\Src\Private\Get-ConfigurationData.Removes deprecated "UpdatePath" property from Host configuration (Issue #77)" time="0.049" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Adds missing "DisableSwitchEnvironmentName" property to Host configuration" name="Unit\Src\Private\Get-ConfigurationData.Adds missing "DisableSwitchEnvironmentName" property to Host configuration" time="0.0475" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Adds missing "MaxEnvelopeSizeKb" property to VM configuration" name="Unit\Src\Private\Get-ConfigurationData.Adds missing "MaxEnvelopeSizeKb" property to VM configuration" time="0.0457" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-DiskImageDriveLetter.Tests.ps1" executed="True" result="Success" success="True" time="0.3879" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-DiskImageDriveLetter.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Get-DiskImageDriveLetter" executed="True" result="Success" success="True" time="0.3879" asserts="0" description="Src\Private\Get-DiskImageDriveLetter"> <results> <test-case description="Throws when no disk letter is found" name="Src\Private\Get-DiskImageDriveLetter.Throws when no disk letter is found" time="0.3241" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when no disk letter is found for specified partition type" name="Src\Private\Get-DiskImageDriveLetter.Throws when no disk letter is found for specified partition type" time="0.0303" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a single character" name="Src\Private\Get-DiskImageDriveLetter.Returns a single character" time="0.0336" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-DscResourceModule.Tests.ps1" executed="True" result="Success" success="True" time="0.592" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-DscResourceModule.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Get-DscResourceModule" executed="True" result="Success" success="True" time="0.592" asserts="0" description="Src\Private\Get-DscResourceModule"> <results> <test-case description="Returns module with "DSCResources"" name="Src\Private\Get-DscResourceModule.Returns module with "DSCResources"" time="0.3951" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns module with "[DSCResource()]"" name="Src\Private\Get-DscResourceModule.Returns module with "[DSCResource()]"" time="0.0728" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return a module without "DSCResources" and "[DSCResource()]"" name="Src\Private\Get-DscResourceModule.Does not return a module without "DSCResources" and "[DSCResource()]"" time="0.0271" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns versioned module with "DSCResources"" name="Src\Private\Get-DscResourceModule.Returns versioned module with "DSCResources"" time="0.031" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns versioned module with "[DSCResource()]"" name="Src\Private\Get-DscResourceModule.Returns versioned module with "[DSCResource()]"" time="0.0354" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return a versioned module without "DSCResources" and "[DSCResource()]"" name="Src\Private\Get-DscResourceModule.Does not return a versioned module without "DSCResources" and "[DSCResource()]"" time="0.0305" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-FormattedMessage.Tests.ps1" executed="True" result="Success" success="True" time="0.3311" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-FormattedMessage.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Get-FormattedMessage" executed="True" result="Success" success="True" time="0.3311" asserts="0" description="Src\Private\Get-FormattedMessage"> <results> <test-case description="Does not return call stack information when "$labDefaults.CallStackLogging" = "$null"" name="Src\Private\Get-FormattedMessage.Does not return call stack information when "$labDefaults.CallStackLogging" = "$null"" time="0.2955" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return call stack information when "$labDefaults.CallStackLogging" = "$false"" name="Src\Private\Get-FormattedMessage.Does not return call stack information when "$labDefaults.CallStackLogging" = "$false"" time="0.0161" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns call stack information when "$labDefaults.CallStackLogging" = "$true"" name="Src\Private\Get-FormattedMessage.Returns call stack information when "$labDefaults.CallStackLogging" = "$true"" time="0.0195" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabDscModule.Tests.ps1" executed="True" result="Success" success="True" time="0.6104" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabDscModule.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Get-LabDscModule" executed="True" result="Success" success="True" time="0.6104" asserts="0" description="Src\Private\Get-LabDscModule"> <results> <test-case description="Throws if module does not exist" name="Src\Private\Get-LabDscModule.Throws if module does not exist" time="0.3288" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns DSC resource's parent directory path" name="Src\Private\Get-LabDscModule.Returns DSC resource's parent directory path" time="0.0264" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns DSC resource's DSCResources subdirectory path if ResourceName is specified" name="Src\Private\Get-LabDscModule.Returns DSC resource's DSCResources subdirectory path if ResourceName is specified" time="0.0355" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Errors if DSC resource's subdirectory path does not exist and ResourceName is specified" name="Src\Private\Get-LabDscModule.Errors if DSC resource's subdirectory path does not exist and ResourceName is specified" time="0.0402" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns $null if DSC resource's subdirectory path does not exist and ResourceName is specified" name="Src\Private\Get-LabDscModule.Returns $null if DSC resource's subdirectory path does not exist and ResourceName is specified" time="0.0292" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not throw if DSC module version is equal to the MinimumVersion specified" name="Src\Private\Get-LabDscModule.Does not throw if DSC module version is equal to the MinimumVersion specified" time="0.0365" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not throw if DSC module version is greater than the MinimumVersion specified" name="Src\Private\Get-LabDscModule.Does not throw if DSC module version is greater than the MinimumVersion specified" time="0.035" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Errors if DSC module version is less than the MinimumVersion specified" name="Src\Private\Get-LabDscModule.Errors if DSC module version is less than the MinimumVersion specified" time="0.0346" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns $null if DSC module version is less than the MinimumVersion specified" name="Src\Private\Get-LabDscModule.Returns $null if DSC module version is less than the MinimumVersion specified" time="0.0442" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabDscResource.Tests.ps1" executed="True" result="Success" success="True" time="0.309" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabDscResource.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Get-LabDscResource" executed="True" result="Success" success="True" time="0.309" asserts="0" description="Src\Private\Get-LabDscResource"> <results> <test-case description="Calls "Get-<ResourceName>TargetResource" method" name="Src\Private\Get-LabDscResource.Calls "Get-<ResourceName>TargetResource" method" time="0.309" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabHostDscConfigurationPath.Tests.ps1" executed="True" result="Success" success="True" time="0.2926" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabHostDscConfigurationPath.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Get-LabHostDefault" executed="True" result="Success" success="True" time="0.2926" asserts="0" description="Unit\Src\Private\Get-LabHostDefault"> <results> <test-case description="Returns host configuration path" name="Unit\Src\Private\Get-LabHostDefault.Returns host configuration path" time="0.2926" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabHostSetupConfiguration.Tests.ps1" executed="True" result="Success" success="True" time="0.3765" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabHostSetupConfiguration.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Get-LabHostSetupConfiguration" executed="True" result="Success" success="True" time="0.3765" asserts="0" description="Unit\Src\Private\Get-LabHostSetupConfiguration"> <results> <test-case description="Installs "Microsoft-Hyper-V-All" feature with "WindowsOptionalFeature" on a desktop OS" name="Unit\Src\Private\Get-LabHostSetupConfiguration.Installs "Microsoft-Hyper-V-All" feature with "WindowsOptionalFeature" on a desktop OS" time="0.312" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Installs "Hyper-V" feature using "WindowsFeature" on a server OS" name="Unit\Src\Private\Get-LabHostSetupConfiguration.Installs "Hyper-V" feature using "WindowsFeature" on a server OS" time="0.0212" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Installs "RSAT-Hyper-V-Tools" feature using "WindowsFeature" on a server OS" name="Unit\Src\Private\Get-LabHostSetupConfiguration.Installs "RSAT-Hyper-V-Tools" feature using "WindowsFeature" on a server OS" time="0.0238" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Checks for a pending reboot" name="Unit\Src\Private\Get-LabHostSetupConfiguration.Checks for a pending reboot" time="0.0195" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabModuleCache.Tests.ps1" executed="True" result="Success" success="True" time="0.8441" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabModuleCache.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Get-LabModuleCache" executed="True" result="Success" success="True" time="0.8441" asserts="0" description="Unit\Src\Private\Get-LabModuleCache"> <results> <test-case description="Returns only a single module" name="Unit\Src\Private\Get-LabModuleCache.Returns only a single module" time="0.296" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns only a single module by "Module"" name="Unit\Src\Private\Get-LabModuleCache.Returns only a single module by "Module"" time="0.03" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns the latest PSGallery module version by default" name="Unit\Src\Private\Get-LabModuleCache.Returns the latest PSGallery module version by default" time="0.0312" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns the latest GitHub module version by default" name="Unit\Src\Private\Get-LabModuleCache.Returns the latest GitHub module version by default" time="0.0287" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns the latest PSGallery module version when "MinimumVersion" is specified" name="Unit\Src\Private\Get-LabModuleCache.Returns the latest PSGallery module version when "MinimumVersion" is specified" time="0.0408" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns the latest GitHub module version when "MinimumVersion" is specified" name="Unit\Src\Private\Get-LabModuleCache.Returns the latest GitHub module version when "MinimumVersion" is specified" time="0.0306" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns the exact PSGallery module version when "RequiredVersion" is specified" name="Unit\Src\Private\Get-LabModuleCache.Returns the exact PSGallery module version when "RequiredVersion" is specified" time="0.0316" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns the exact GitHub module version when "RequiredVersion" is specified" name="Unit\Src\Private\Get-LabModuleCache.Returns the exact GitHub module version when "RequiredVersion" is specified" time="0.0282" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return PSGallery module when "MinimumVersion" is not cached" name="Unit\Src\Private\Get-LabModuleCache.Does not return PSGallery module when "MinimumVersion" is not cached" time="0.0288" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return PSGallery module when "RequiredVersion" is not cached" name="Unit\Src\Private\Get-LabModuleCache.Does not return PSGallery module when "RequiredVersion" is not cached" time="0.0283" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return GitHub module when "MinimumVersion" is not cached" name="Unit\Src\Private\Get-LabModuleCache.Does not return GitHub module when "MinimumVersion" is not cached" time="0.0369" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return GitHub module when "RequiredVersion" is not cached" name="Unit\Src\Private\Get-LabModuleCache.Does not return GitHub module when "RequiredVersion" is not cached" time="0.0388" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a FileSystem provider [System.IO.DirectoryInfo] object type" name="Unit\Src\Private\Get-LabModuleCache.Returns a FileSystem provider [System.IO.DirectoryInfo] object type" time="0.033" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a FileSystem provider [System.IO.FileInfo] object type" name="Unit\Src\Private\Get-LabModuleCache.Returns a FileSystem provider [System.IO.FileInfo] object type" time="0.0299" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if module "Name" is not specified" name="Unit\Src\Private\Get-LabModuleCache.Throws if module "Name" is not specified" time="0.0281" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if GitHub module "Owner" is not specified" name="Unit\Src\Private\Get-LabModuleCache.Throws if GitHub module "Owner" is not specified" time="0.014" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if FileSystem module "Path" is not specified" name="Unit\Src\Private\Get-LabModuleCache.Throws if FileSystem module "Path" is not specified" time="0.0237" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if FileSystem module "Path" does not exist" name="Unit\Src\Private\Get-LabModuleCache.Throws if FileSystem module "Path" does not exist" time="0.0124" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if FileSystem module "Path" is not a ".zip" file" name="Unit\Src\Private\Get-LabModuleCache.Throws if FileSystem module "Path" is not a ".zip" file" time="0.0296" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if unsupported hashtable key is used (#170)" name="Unit\Src\Private\Get-LabModuleCache.Throws if unsupported hashtable key is used (#170)" time="0.0236" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabMofModule.Tests.ps1" executed="True" result="Success" success="True" time="0.385" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabMofModule.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Get-LabMofModule" executed="True" result="Success" success="True" time="0.385" asserts="0" description="Unit\Src\Private\Get-LabMofModule"> <results> <test-case description="Does count individual module references" name="Unit\Src\Private\Get-LabMofModule.Does count individual module references" time="0.2867" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not count duplicate module references" name="Unit\Src\Private\Get-LabMofModule.Does not count duplicate module references" time="0.0305" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Ignores "PSDesiredStateConfiguration" instances" name="Unit\Src\Private\Get-LabMofModule.Ignores "PSDesiredStateConfiguration" instances" time="0.0269" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Ignores "MSFT_Credential" instances" name="Unit\Src\Private\Get-LabMofModule.Ignores "MSFT_Credential" instances" time="0.0408" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabVirtualMachineProperty.Tests.ps1" executed="True" result="Success" success="True" time="1.2112" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabVirtualMachineProperty.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Get-LabVirtualMachineProperty" executed="True" result="Success" success="True" time="1.2112" asserts="0" description="Unit\Src\Private\Get-LabVirtualMachineProperty"> <results> <test-case description="Returns generation 1 VM for x86 media architecture" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Returns generation 1 VM for x86 media architecture" time="0.3097" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns generation 2 VM for x64 media architecture" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Returns generation 2 VM for x64 media architecture" time="0.0554" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns generation 1 VM when custom "MBR" partition style is defined" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Returns generation 1 VM when custom "MBR" partition style is defined" time="0.054" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns generation 2 VM when custom "GPT" partition style is defined" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Returns generation 2 VM when custom "GPT" partition style is defined" time="0.0562" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns generation 1 VM when image generation is "VHD", but media "x64" and partition style is "GPT"" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Returns generation 1 VM when image generation is "VHD", but media "x64" and partition style is "GPT"" time="0.0445" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns generation 1 VM when image generation is "VHDX", but custom data "VmGeneration" is "1"" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Returns generation 1 VM when image generation is "VHDX", but custom data "VmGeneration" is "1"" time="0.0607" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns generation 2 VM when image generation is "VHD", but custom data "VmGeneration" is "2"" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Returns generation 2 VM when image generation is "VHD", but custom data "VmGeneration" is "2"" time="0.0541" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns additional "VhdPath" property" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Returns additional "VhdPath" property" time="0.0534" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns additional "RestartIfNeeded" property" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Returns additional "RestartIfNeeded" property" time="0.0543" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return "Media" property" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Does not return "Media" property" time="0.0499" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return "EnableGuestService" property by default" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Does not return "EnableGuestService" property by default" time="0.0639" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns "EnableGuestService" property when "GuestIntegrationServices" is specified" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Returns "EnableGuestService" property when "GuestIntegrationServices" is specified" time="0.0513" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Resolve-LabMedia" with "ConfigurationData" when specified (#97)" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Calls "Resolve-LabMedia" with "ConfigurationData" when specified (#97)" time="0.0488" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" time="0.0662" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return "ConfigurationData" property by default (#97)" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Does not return "ConfigurationData" property by default (#97)" time="0.087" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return "AutomaticCheckpoints" property when "Test-WindowsBuildNumber" fails (#294)" name="Unit\Src\Private\Get-LabVirtualMachineProperty.Does not return "AutomaticCheckpoints" property when "Test-WindowsBuildNumber" fails (#294)" time="0.1015" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabVMDisk.Tests.ps1" executed="True" result="Success" success="True" time="0.4596" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabVMDisk.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Get-LabVMDisk" executed="True" result="Success" success="True" time="0.4596" asserts="0" description="Unit\Src\Private\Get-LabVMDisk"> <results> <test-case description="Calls "Get-LabMedia" to resolve the parent VHDX path" name="Unit\Src\Private\Get-LabVMDisk.Calls "Get-LabMedia" to resolve the parent VHDX path" time="0.3607" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabDscResource" with virtual machine name" name="Unit\Src\Private\Get-LabVMDisk.Calls "Get-LabDscResource" with virtual machine name" time="0.0524" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" name="Unit\Src\Private\Get-LabVMDisk.Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" time="0.0465" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabVMSnapshot.Tests.ps1" executed="True" result="Success" success="True" time="0.3681" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-LabVMSnapshot.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Get-LabVMSnapshot" executed="True" result="Success" success="True" time="0.3681" asserts="0" description="Unit\Src\Private\Get-LabVMSnapshot"> <results> <test-case description="Calls "Get-VMSnapshot" for each virtual machine specified" name="Unit\Src\Private\Get-LabVMSnapshot.Calls "Get-VMSnapshot" for each virtual machine specified" time="0.3295" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Warns when snapshot name cannot be found" name="Unit\Src\Private\Get-LabVMSnapshot.Warns when snapshot name cannot be found" time="0.0387" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-ResourceDownload.Tests.ps1" executed="True" result="Success" success="True" time="0.5045" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-ResourceDownload.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Get-ResourceDownload" executed="True" result="Success" success="True" time="0.5045" asserts="0" description="Unit\Src\Private\Get-ResourceDownload"> <results> <test-case description="Returns "System.Collections.Hashtable" type" name="Unit\Src\Private\Get-ResourceDownload.Returns "System.Collections.Hashtable" type" time="0.3131" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns empty checksum if resource does not exist" name="Unit\Src\Private\Get-ResourceDownload.Returns empty checksum if resource does not exist" time="0.016" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns correct checksum if resource and checksum files exist" name="Unit\Src\Private\Get-ResourceDownload.Returns correct checksum if resource and checksum files exist" time="0.0345" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns correct checksum if resource exists but checksum does not exist" name="Unit\Src\Private\Get-ResourceDownload.Returns correct checksum if resource exists but checksum does not exist" time="0.0484" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns incorrect checksum if incorrect resource and checksum files exist" name="Unit\Src\Private\Get-ResourceDownload.Returns incorrect checksum if incorrect resource and checksum files exist" time="0.0561" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns incorrect checksum if incorrect resource exists but checksum does not exist" name="Unit\Src\Private\Get-ResourceDownload.Returns incorrect checksum if incorrect resource exists but checksum does not exist" time="0.0364" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-WindowsImageByIndex.Tests.ps1" executed="True" result="Success" success="True" time="0.4231" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-WindowsImageByIndex.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Get-WindowsImageByIndex" executed="True" result="Success" success="True" time="0.4231" asserts="0" description="Src\Private\Get-WindowsImageByIndex"> <results> <test-case description="Returns a "System.Int32" type" name="Src\Private\Get-WindowsImageByIndex.Returns a "System.Int32" type" time="0.3591" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns the matching image index if found" name="Src\Private\Get-WindowsImageByIndex.Returns the matching image index if found" time="0.0327" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns nothing when image index is not found" name="Src\Private\Get-WindowsImageByIndex.Returns nothing when image index is not found" time="0.0313" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-WindowsImageByName.Tests.ps1" executed="True" result="Success" success="True" time="0.401" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Get-WindowsImageByName.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Get-WindowsImageByName" executed="True" result="Success" success="True" time="0.401" asserts="0" description="Src\Private\Get-WindowsImageByName"> <results> <test-case description="Returns a "System.String" type" name="Src\Private\Get-WindowsImageByName.Returns a "System.String" type" time="0.3404" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns the matching image name" name="Src\Private\Get-WindowsImageByName.Returns the matching image name" time="0.0225" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns nothing when image name is not found" name="Src\Private\Get-WindowsImageByName.Returns nothing when image name is not found" time="0.0382" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Import-LabDscResource.Tests.ps1" executed="True" result="Success" success="True" time="0.4403" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Import-LabDscResource.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Import-LabDscResource" executed="True" result="Success" success="True" time="0.4403" asserts="0" description="Src\Private\Import-LabDscResource"> <results> <test-case description="Does not import module if command is already imported" name="Src\Private\Import-LabDscResource.Does not import module if command is already imported" time="0.3314" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not call "Get-LabDscModule" if "UseDefault" is not specified" name="Src\Private\Import-LabDscResource.Does not call "Get-LabDscModule" if "UseDefault" is not specified" time="0.0535" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabDscModule" if "UseDefault" is specified" name="Src\Private\Import-LabDscResource.Calls "Get-LabDscModule" if "UseDefault" is specified" time="0.0554" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-DscResource.Tests.ps1" executed="True" result="Success" success="True" time="0.411" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-DscResource.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Invoke-LabDscResource" executed="True" result="Success" success="True" time="0.411" asserts="0" description="Src\Private\Invoke-LabDscResource"> <results> <test-case description="Does not call "Set-<ResourceName>TargetResource" if "TestDscResource" passes" name="Src\Private\Invoke-LabDscResource.Does not call "Set-<ResourceName>TargetResource" if "TestDscResource" passes" time="0.3351" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does call "Set-<ResourceName>TargetResource" if "TestDscResource" fails" name="Src\Private\Invoke-LabDscResource.Does call "Set-<ResourceName>TargetResource" if "TestDscResource" fails" time="0.0457" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when "TestDscResource" fails and "ResourceName" matches "PendingReboot"" name="Src\Private\Invoke-LabDscResource.Throws when "TestDscResource" fails and "ResourceName" matches "PendingReboot"" time="0.0302" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-Executable.Tests.ps1" executed="True" result="Success" success="True" time="0.5346" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-Executable.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Invoke-Executable" executed="True" result="Success" success="True" time="0.5346" asserts="0" description="Src\Private\Invoke-Executable"> <results> <test-case description="Calls "Start-Process" with correct process path" name="Src\Private\Invoke-Executable.Calls "Start-Process" with correct process path" time="0.4169" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Start-Process" with correct arguments" name="Src\Private\Invoke-Executable.Calls "Start-Process" with correct arguments" time="0.0362" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Waits for "Start-Process" to exit" name="Src\Private\Invoke-Executable.Waits for "Start-Process" to exit" time="0.0428" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Warns when process exits with non-zero exit code" name="Src\Private\Invoke-Executable.Warns when process exits with non-zero exit code" time="0.0386" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-LabMediaDownload.Tests.ps1" executed="True" result="Success" success="True" time="0.3775" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-LabMediaDownload.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Invoke-LabMediaDownload" executed="True" result="Success" success="True" time="0.3775" asserts="0" description="Unit\Src\Private\Invoke-LabMediaDownload"> <results> <test-case description="Returns a "System.IO.FileInfo" object type" name="Unit\Src\Private\Invoke-LabMediaDownload.Returns a "System.IO.FileInfo" object type" time="0.3011" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-ResourceDownload" with "Checksum" parameter when specified" name="Unit\Src\Private\Invoke-LabMediaDownload.Calls "Invoke-ResourceDownload" with "Checksum" parameter when specified" time="0.0422" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-ResourceDownload" with "Force" parameter when specified" name="Unit\Src\Private\Invoke-LabMediaDownload.Calls "Invoke-ResourceDownload" with "Force" parameter when specified" time="0.0342" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-LabMediaImageDownload.Tests.ps1" executed="True" result="Success" success="True" time="0.6652" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-LabMediaImageDownload.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Invoke-LabMediaImageDownload" executed="True" result="Success" success="True" time="0.6652" asserts="0" description="Unit\Src\Private\Invoke-LabMediaImageDownload"> <results> <test-case description="Returns a "System.IO.FileInfo" object type" name="Unit\Src\Private\Invoke-LabMediaImageDownload.Returns a "System.IO.FileInfo" object type" time="0.3428" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-ResourceDownload" with "ParentVhdPath" if media type is "VHD"" name="Unit\Src\Private\Invoke-LabMediaImageDownload.Calls "Invoke-ResourceDownload" with "ParentVhdPath" if media type is "VHD"" time="0.0538" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-ResourceDownload" with "IsoPath" if media type is "ISO"" name="Unit\Src\Private\Invoke-LabMediaImageDownload.Calls "Invoke-ResourceDownload" with "IsoPath" if media type is "ISO"" time="0.0438" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-ResourceDownload" with "IsoPath" if media type is "WIM"" name="Unit\Src\Private\Invoke-LabMediaImageDownload.Calls "Invoke-ResourceDownload" with "IsoPath" if media type is "WIM"" time="0.0576" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-ResourceDownload" with "Force" parameter when specified" name="Unit\Src\Private\Invoke-LabMediaImageDownload.Calls "Invoke-ResourceDownload" with "Force" parameter when specified" time="0.0424" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-ResourceDownload" with large "BufferSize" for file Uris" name="Unit\Src\Private\Invoke-LabMediaImageDownload.Calls "Invoke-ResourceDownload" with large "BufferSize" for file Uris" time="0.0396" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not call "Invoke-ResourceDownload" when "DisableLocalFileCaching" is enabled" name="Unit\Src\Private\Invoke-LabMediaImageDownload.Does not call "Invoke-ResourceDownload" when "DisableLocalFileCaching" is enabled" time="0.0416" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns source Uri when "DisableLocalFileCaching" is enabled" name="Unit\Src\Private\Invoke-LabMediaImageDownload.Returns source Uri when "DisableLocalFileCaching" is enabled" time="0.0436" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-LabModuleCacheDownload.Tests.ps1" executed="True" result="Success" success="True" time="0.5947" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-LabModuleCacheDownload.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Invoke-LabModuleCacheDownload" executed="True" result="Success" success="True" time="0.5947" asserts="0" description="Unit\Src\Private\Invoke-LabModuleCacheDownload"> <results> <test-case description="Downloads module from PSGallery when no Provider is specified" name="Unit\Src\Private\Invoke-LabModuleCacheDownload.Downloads module from PSGallery when no Provider is specified" time="0.3421" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads module from GitHub by ModuleInfo" name="Unit\Src\Private\Invoke-LabModuleCacheDownload.Downloads module from GitHub by ModuleInfo" time="0.0453" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads module from PSGallery when "PSGallery" Provider is specified" name="Unit\Src\Private\Invoke-LabModuleCacheDownload.Downloads module from PSGallery when "PSGallery" Provider is specified" time="0.0513" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads module from GitHub when "GitHub" Provider is specified" name="Unit\Src\Private\Invoke-LabModuleCacheDownload.Downloads module from GitHub when "GitHub" Provider is specified" time="0.0626" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not download module when "FileSystem" Provider is specified" name="Unit\Src\Private\Invoke-LabModuleCacheDownload.Does not download module when "FileSystem" Provider is specified" time="0.0411" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not download module when resource is cached" name="Unit\Src\Private\Invoke-LabModuleCacheDownload.Does not download module when resource is cached" time="0.0523" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-LabModuleDownloadFromGitHub.Tests.ps1" executed="True" result="Success" success="True" time="0.4502" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-LabModuleDownloadFromGitHub.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Invoke-LabModuleDownloadFromGitHub" executed="True" result="Success" success="True" time="0.4502" asserts="0" description="Src\Private\Invoke-LabModuleDownloadFromGitHub"> <results> <test-case description="Returns a [System.IO.FileInfo] object type" name="Src\Private\Invoke-LabModuleDownloadFromGitHub.Returns a [System.IO.FileInfo] object type" time="0.3086" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Resolve-GitHubModuleUri" with "Owner" and "Branch"" name="Src\Private\Invoke-LabModuleDownloadFromGitHub.Calls "Resolve-GitHubModuleUri" with "Owner" and "Branch"" time="0.0491" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Resolve-GitHubModuleUri" with "OverrideRepositoryName" when specified" name="Src\Private\Invoke-LabModuleDownloadFromGitHub.Calls "Resolve-GitHubModuleUri" with "OverrideRepositoryName" when specified" time="0.0506" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when "Owner" is not specified" name="Src\Private\Invoke-LabModuleDownloadFromGitHub.Throws when "Owner" is not specified" time="0.0211" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Warns when no "Branch" is specified" name="Src\Private\Invoke-LabModuleDownloadFromGitHub.Warns when no "Branch" is specified" time="0.0208" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-LabModuleDownloadFromPSGallery.Tests.ps1" executed="True" result="Success" success="True" time="0.5184" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-LabModuleDownloadFromPSGallery.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Invoke-LabModuleDownloadFromPSGallery" executed="True" result="Success" success="True" time="0.5184" asserts="0" description="Src\Private\Invoke-LabModuleDownloadFromPSGallery"> <results> <test-case description="Returns a [System.IO.FileInfo] object type" name="Src\Private\Invoke-LabModuleDownloadFromPSGallery.Returns a [System.IO.FileInfo] object type" time="0.4354" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Resolve-PSGalleryModuleUri" with "RequiredVersion" when specified" name="Src\Private\Invoke-LabModuleDownloadFromPSGallery.Calls "Resolve-PSGalleryModuleUri" with "RequiredVersion" when specified" time="0.0423" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Resolve-PSGalleryModuleUri" with "MinimumVersion" when specified" name="Src\Private\Invoke-LabModuleDownloadFromPSGallery.Calls "Resolve-PSGalleryModuleUri" with "MinimumVersion" when specified" time="0.0407" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-ResourceDownload.Tests.ps1" executed="True" result="Success" success="True" time="0.4125" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Invoke-ResourceDownload.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Invoke-ResourceDownload" executed="True" result="Success" success="True" time="0.4125" asserts="0" description="Unit\Src\Private\Invoke-ResourceDownload"> <results> <test-case description="Returns a "System.Management.Automation.PSCustomObject" type" name="Unit\Src\Private\Invoke-ResourceDownload.Returns a "System.Management.Automation.PSCustomObject" type" time="0.2496" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-ResourceDownload" if "Test-ResourceDownload" fails" name="Unit\Src\Private\Invoke-ResourceDownload.Calls "Set-ResourceDownload" if "Test-ResourceDownload" fails" time="0.0538" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-ResourceDownload" if "Test-ResourceDownload" passes but -Force was specified" name="Unit\Src\Private\Invoke-ResourceDownload.Calls "Set-ResourceDownload" if "Test-ResourceDownload" passes but -Force was specified" time="0.047" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not call "Set-ResourceDownload" if "Test-ResourceDownload" passes" name="Unit\Src\Private\Invoke-ResourceDownload.Does not call "Set-ResourceDownload" if "Test-ResourceDownload" passes" time="0.0223" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if "Set-ResourceDownload" downloaded resource checksum does not match" name="Unit\Src\Private\Invoke-ResourceDownload.Throws if "Set-ResourceDownload" downloaded resource checksum does not match" time="0.0397" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-Directory.Tests.ps1" executed="True" result="Success" success="True" time="0.4599" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-Directory.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\New-Directory" executed="True" result="Success" success="True" time="0.4599" asserts="0" description="Unit\Src\Private\New-Directory"> <results> <test-case description="Returns a "System.IO.DirectoryInfo" object if target "Path" already exists" name="Unit\Src\Private\New-Directory.Returns a "System.IO.DirectoryInfo" object if target "Path" already exists" time="0.2803" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a "System.IO.DirectoryInfo" object if target "Path" does not exist" name="Unit\Src\Private\New-Directory.Returns a "System.IO.DirectoryInfo" object if target "Path" does not exist" time="0.0158" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates target "Path" if it does not exist" name="Unit\Src\Private\New-Directory.Creates target "Path" if it does not exist" time="0.0175" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a "System.IO.DirectoryInfo" object if target "DirectoryInfo" already exists" name="Unit\Src\Private\New-Directory.Returns a "System.IO.DirectoryInfo" object if target "DirectoryInfo" already exists" time="0.0152" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a "System.IO.DirectoryInfo" object if target "DirectoryInfo" does not exist" name="Unit\Src\Private\New-Directory.Returns a "System.IO.DirectoryInfo" object if target "DirectoryInfo" does not exist" time="0.0192" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates target "DirectoryInfo" if it does not exist" name="Unit\Src\Private\New-Directory.Creates target "DirectoryInfo" if it does not exist" time="0.0166" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates target "Paths" (plural) from parameter input if they do not exist" name="Unit\Src\Private\New-Directory.Creates target "Paths" (plural) from parameter input if they do not exist" time="0.0232" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates target "Paths" (plural) from pipeline input if they do not exist" name="Unit\Src\Private\New-Directory.Creates target "Paths" (plural) from pipeline input if they do not exist" time="0.0237" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates target "DirectoryInfos" (plural) from parameter input if they do not exist" name="Unit\Src\Private\New-Directory.Creates target "DirectoryInfos" (plural) from parameter input if they do not exist" time="0.0256" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates target "DirectoryInfos" (plural) from pipeline input if they do not exist" name="Unit\Src\Private\New-Directory.Creates target "DirectoryInfos" (plural) from pipeline input if they do not exist" time="0.0226" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-DiskImage.Tests.ps1" executed="True" result="Success" success="True" time="0.6934" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-DiskImage.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\New-DiskImage" executed="True" result="Success" success="True" time="0.6934" asserts="0" description="Src\Private\New-DiskImage"> <results> <test-case description="Throws if VHD image already exists" name="Src\Private\New-DiskImage.Throws if VHD image already exists" time="0.219" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Removes existing VHD image if it already exists and -Force is specified" name="Src\Private\New-DiskImage.Removes existing VHD image if it already exists and -Force is specified" time="0.0859" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates new VHD file and initializes disk" name="Src\Private\New-DiskImage.Creates new VHD file and initializes disk" time="0.0787" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does dismount VHD file if -PassThru is not specified" name="Src\Private\New-DiskImage.Does dismount VHD file if -PassThru is not specified" time="0.0506" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not dismount VHD file if -PassThru is specified" name="Src\Private\New-DiskImage.Does not dismount VHD file if -PassThru is specified" time="0.0458" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates a dynamic disk when no "Type" is defined (#99)" name="Src\Private\New-DiskImage.Creates a dynamic disk when no "Type" is defined (#99)" time="0.0689" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates a fixed disk when "Type" is defined (#99)" name="Src\Private\New-DiskImage.Creates a fixed disk when "Type" is defined (#99)" time="0.0683" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates a custom size disk when "Size" is defined (#99)" name="Src\Private\New-DiskImage.Creates a custom size disk when "Size" is defined (#99)" time="0.0762" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-DiskImageGpt.Tests.ps1" executed="True" result="Success" success="True" time="0.7148" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-DiskImageGpt.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\New-DiskImageGpt" executed="True" result="Success" success="True" time="0.7148" asserts="0" description="Src\Private\New-DiskImageGpt"> <results> <test-case description="Stops and starts Shell Hardware Detection service" name="Src\Private\New-DiskImageGpt.Stops and starts Shell Hardware Detection service" time="0.4417" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates 250MB system partition" name="Src\Private\New-DiskImageGpt.Creates 250MB system partition" time="0.0903" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates OS partition" name="Src\Private\New-DiskImageGpt.Creates OS partition" time="0.0902" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Formats volume as NTFS" name="Src\Private\New-DiskImageGpt.Formats volume as NTFS" time="0.0926" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-DiskImageMbr.Tests.ps1" executed="True" result="Success" success="True" time="0.6485" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-DiskImageMbr.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\New-DiskImageMbr" executed="True" result="Success" success="True" time="0.6485" asserts="0" description="Src\Private\New-DiskImageMbr"> <results> <test-case description="Stops Shell Hardware Detection service" name="Src\Private\New-DiskImageMbr.Stops Shell Hardware Detection service" time="0.5063" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates a full size active IFS partition" name="Src\Private\New-DiskImageMbr.Creates a full size active IFS partition" time="0.0742" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Formats volume as NTFS" name="Src\Private\New-DiskImageMbr.Formats volume as NTFS" time="0.068" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-LabBootStrap.Tests.ps1" executed="True" result="Success" success="True" time="0.3748" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-LabBootStrap.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\New-LabBootStrap" executed="True" result="Success" success="True" time="0.3748" asserts="0" description="Src\Private\New-LabBootStrap"> <results> <test-case description="Returns a "System.String" type" name="Src\Private\New-LabBootStrap.Returns a "System.String" type" time="0.3307" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Includes custom BootStrap injection point" name="Src\Private\New-LabBootStrap.Includes custom BootStrap injection point" time="0.0133" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Defaults "MaxEnvelopeSizeKb" size to 1024" name="Src\Private\New-LabBootStrap.Defaults "MaxEnvelopeSizeKb" size to 1024" time="0.0153" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "MaxEnvelopeSizeKb" size to "2048" when specified" name="Src\Private\New-LabBootStrap.Sets "MaxEnvelopeSizeKb" size to "2048" when specified" time="0.0155" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-LabMedia.Tests.ps1" executed="True" result="Success" success="True" time="0.4987" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-LabMedia.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\New-LabMedia" executed="True" result="Success" success="True" time="0.4987" asserts="0" description="Unit\Src\Private\New-LabMedia"> <results> <test-case description="Does not throw with valid mandatory parameters" name="Unit\Src\Private\New-LabMedia.Does not throw with valid mandatory parameters" time="0.2518" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws with an invalid Uri" name="Unit\Src\Private\New-LabMedia.Throws with an invalid Uri" time="0.0675" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when "Id" parameter is missing" name="Unit\Src\Private\New-LabMedia.Throws when "Id" parameter is missing" time="0.0247" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when "Filename" parameter is missing" name="Unit\Src\Private\New-LabMedia.Throws when "Filename" parameter is missing" time="0.0325" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when "Architecture" parameter is missing" name="Unit\Src\Private\New-LabMedia.Throws when "Architecture" parameter is missing" time="0.0282" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when "MediaType" parameter is missing" name="Unit\Src\Private\New-LabMedia.Throws when "MediaType" parameter is missing" time="0.029" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when "Uri" parameter is missing" name="Unit\Src\Private\New-LabMedia.Throws when "Uri" parameter is missing" time="0.0269" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns "System.Management.Automation.PSCustomObject" object type" name="Unit\Src\Private\New-LabMedia.Returns "System.Management.Automation.PSCustomObject" object type" time="0.0169" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates ProductKey custom entry when "ProductKey" is specified" name="Unit\Src\Private\New-LabMedia.Creates ProductKey custom entry when "ProductKey" is specified" time="0.0211" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-LabSwitch.Tests.ps1" executed="True" result="Success" success="True" time="0.4062" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-LabSwitch.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\New-LabSwitch" executed="True" result="Success" success="True" time="0.4062" asserts="0" description="Unit\Src\Private\New-LabSwitch"> <results> <test-case description="Returns a "System.Collections.Hashtable" object type" name="Unit\Src\Private\New-LabSwitch.Returns a "System.Collections.Hashtable" object type" time="0.3477" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when switch type is "External" and "NetAdapterName" is not specified" name="Unit\Src\Private\New-LabSwitch.Throws when switch type is "External" and "NetAdapterName" is not specified" time="0.0228" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Removes "NetAdapterName" if switch type is not "External"" name="Unit\Src\Private\New-LabSwitch.Removes "NetAdapterName" if switch type is not "External"" time="0.0164" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Removes "AllowManagementOS" if switch type is not "External"" name="Unit\Src\Private\New-LabSwitch.Removes "AllowManagementOS" if switch type is not "External"" time="0.0194" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-LabVirtualMachine.Tests.ps1" executed="True" result="Success" success="True" time="7.0225" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-LabVirtualMachine.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\New-LabVirtualMachine" executed="True" result="Success" success="True" time="7.0225" asserts="0" description="Unit\Src\Private\New-LabVirtualMachine"> <results> <test-case description="Throws when "ClientCertificatePath" cannot be found" name="Unit\Src\Private\New-LabVirtualMachine.Throws when "ClientCertificatePath" cannot be found" time="0.4926" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not throw when "ClientCertificatePath" cannot be found and "IsQuickVM" = "$true"" name="Unit\Src\Private\New-LabVirtualMachine.Does not throw when "ClientCertificatePath" cannot be found and "IsQuickVM" = "$true"" time="1.1899" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when "RootCertificatePath" cannot be found" name="Unit\Src\Private\New-LabVirtualMachine.Throws when "RootCertificatePath" cannot be found" time="0.1922" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not throw when "RootCertificatePath" cannot be found and "IsQuickVM" = "$true"" name="Unit\Src\Private\New-LabVirtualMachine.Does not throw when "RootCertificatePath" cannot be found and "IsQuickVM" = "$true"" time="0.3219" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates parent image if it is not already present" name="Unit\Src\Private\New-LabVirtualMachine.Creates parent image if it is not already present" time="0.348" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabSwitch" to configure VM switch" name="Unit\Src\Private\New-LabVirtualMachine.Calls "Set-LabSwitch" to configure VM switch" time="0.1461" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabSwitch" once per network switch" name="Unit\Src\Private\New-LabVirtualMachine.Calls "Set-LabSwitch" once per network switch" time="0.1429" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Reset-LabVMDisk" to create VM disk" name="Unit\Src\Private\New-LabVirtualMachine.Calls "Reset-LabVMDisk" to create VM disk" time="0.0945" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates virtual machine" name="Unit\Src\Private\New-LabVirtualMachine.Creates virtual machine" time="0.0945" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates virtual machine with "GuestIntegrationServices" when specified" name="Unit\Src\Private\New-LabVirtualMachine.Creates virtual machine with "GuestIntegrationServices" when specified" time="0.1045" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not inject resources when "OperatingSystem" is "Linux"" name="Unit\Src\Private\New-LabVirtualMachine.Does not inject resources when "OperatingSystem" is "Linux"" time="0.3033" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not inject resources when "MediaType" is "NULL"" name="Unit\Src\Private\New-LabVirtualMachine.Does not inject resources when "MediaType" is "NULL"" time="0.5107" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Injects VM resources" name="Unit\Src\Private\New-LabVirtualMachine.Injects VM resources" time="0.5099" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes media "ProductKey" when specified (#134)" name="Unit\Src\Private\New-LabVirtualMachine.Passes media "ProductKey" when specified (#134)" time="0.3776" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not create a snapshot when "NoSnapshot" is specified" name="Unit\Src\Private\New-LabVirtualMachine.Does not create a snapshot when "NoSnapshot" is specified" time="0.3353" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Writes warning when VM "WarningMessage" is defined" name="Unit\Src\Private\New-LabVirtualMachine.Writes warning when VM "WarningMessage" is defined" time="0.3308" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Test-LabImage" with "ConfigurationData" (#97)" name="Unit\Src\Private\New-LabVirtualMachine.Calls "Test-LabImage" with "ConfigurationData" (#97)" time="0.4147" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Reset-LabVMDisk" with "ConfigurationData" (#97)" name="Unit\Src\Private\New-LabVirtualMachine.Calls "Reset-LabVMDisk" with "ConfigurationData" (#97)" time="0.5981" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabVirtualMachine" with "ConfigurationData" (#97)" name="Unit\Src\Private\New-LabVirtualMachine.Calls "Set-LabVirtualMachine" with "ConfigurationData" (#97)" time="0.3574" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabSwitch" without prefixed switch name (#251)" name="Unit\Src\Private\New-LabVirtualMachine.Calls "Set-LabSwitch" without prefixed switch name (#251)" time="0.1365" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Warns when no client or root certificate is used" name="Unit\Src\Private\New-LabVirtualMachine.Warns when no client or root certificate is used" time="0.0211" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-LabVMSnapshot.Tests.ps1" executed="True" result="Success" success="True" time="0.2461" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-LabVMSnapshot.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\New-LabVMSnapshot" executed="True" result="Success" success="True" time="0.2461" asserts="0" description="Unit\Src\Private\New-LabVMSnapshot"> <results> <test-case description="Calls "Checkpoint-VM" for each virtual machine specified" name="Unit\Src\Private\New-LabVMSnapshot.Calls "Checkpoint-VM" for each virtual machine specified" time="0.2461" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-UnattendXml.Tests.ps1" executed="True" result="Success" success="True" time="0.5371" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\New-UnattendXml.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\New-UnattendXml" executed="True" result="Success" success="True" time="0.5371" asserts="0" description="Src\Private\New-UnattendXml"> <results> <test-case description="Returns a "System.Xml.XmlDocument" type" name="Src\Private\New-UnattendXml.Returns a "System.Xml.XmlDocument" type" time="0.2973" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates equal number of "x86" and "amd64" components" name="Src\Private\New-UnattendXml.Creates equal number of "x86" and "amd64" components" time="0.0123" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets encoded Administrator password" name="Src\Private\New-UnattendXml.Sets encoded Administrator password" time="0.0214" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets timezone" name="Src\Private\New-UnattendXml.Sets timezone" time="0.0216" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets Input locale" name="Src\Private\New-UnattendXml.Sets Input locale" time="0.0239" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets System locale" name="Src\Private\New-UnattendXml.Sets System locale" time="0.0249" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets UI language" name="Src\Private\New-UnattendXml.Sets UI language" time="0.0298" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets User locale" name="Src\Private\New-UnattendXml.Sets User locale" time="0.0225" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets computer name" name="Src\Private\New-UnattendXml.Sets computer name" time="0.0235" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets product key" name="Src\Private\New-UnattendXml.Sets product key" time="0.0247" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Adds single synchronous command" name="Src\Private\New-UnattendXml.Adds single synchronous command" time="0.0191" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Adds multiple synchronous commands" name="Src\Private\New-UnattendXml.Adds multiple synchronous commands" time="0.0161" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-ConfigurationData.Tests.ps1" executed="True" result="Success" success="True" time="0.5091" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-ConfigurationData.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Remove-ConfigurationData" executed="True" result="Success" success="True" time="0.5091" asserts="0" description="Unit\Src\Private\Remove-ConfigurationData"> <results> <test-case description="Removes configuration file" name="Unit\Src\Private\Remove-ConfigurationData.Removes configuration file" time="0.5091" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-LabSwitch.Tests.ps1" executed="True" result="Success" success="True" time="0.3217" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-LabSwitch.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Remove-LabSwitch" executed="True" result="Success" success="True" time="0.3217" asserts="0" description="Unit\Src\Private\Remove-LabSwitch"> <results> <test-case description="Calls "Invoke-LabDscResource" with "Ensure" = "Absent" when switch exists" name="Unit\Src\Private\Remove-LabSwitch.Calls "Invoke-LabDscResource" with "Ensure" = "Absent" when switch exists" time="0.3026" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not call "Invoke-LabDscResource" for a non-existent switch" name="Unit\Src\Private\Remove-LabSwitch.Does not call "Invoke-LabDscResource" for a non-existent switch" time="0.0191" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-LabVirtualMachine.Tests.ps1" executed="True" result="Success" success="True" time="0.7945" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-LabVirtualMachine.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Remove-LabVirtualMachine" executed="True" result="Success" success="True" time="0.7945" asserts="0" description="Unit\Src\Private\Remove-LabVirtualMachine"> <results> <test-case description="Throws when VM cannot be found" name="Unit\Src\Private\Remove-LabVirtualMachine.Throws when VM cannot be found" time="0.2555" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Removes all snapshots" name="Unit\Src\Private\Remove-LabVirtualMachine.Removes all snapshots" time="0.0688" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Removes the virtual machine" name="Unit\Src\Private\Remove-LabVirtualMachine.Removes the virtual machine" time="0.0638" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Removes the VHDX file" name="Unit\Src\Private\Remove-LabVirtualMachine.Removes the VHDX file" time="0.0647" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not remove the virtual switch by default" name="Unit\Src\Private\Remove-LabVirtualMachine.Does not remove the virtual switch by default" time="0.0633" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Removes the virtual switch when "RemoveSwitch" is specified" name="Unit\Src\Private\Remove-LabVirtualMachine.Removes the virtual switch when "RemoveSwitch" is specified" time="0.0708" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "RemoveLabVirtualMachine" with "ConfigurationData" (#97)" name="Unit\Src\Private\Remove-LabVirtualMachine.Calls "RemoveLabVirtualMachine" with "ConfigurationData" (#97)" time="0.0713" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Remove-LabVMDisk" with "ConfigurationData" (#97)" name="Unit\Src\Private\Remove-LabVirtualMachine.Calls "Remove-LabVMDisk" with "ConfigurationData" (#97)" time="0.0704" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Remove-LabVMDisk" without environment prefix (#292)" name="Unit\Src\Private\Remove-LabVirtualMachine.Calls "Remove-LabVMDisk" without environment prefix (#292)" time="0.066" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-LabVirtualMachineHardDiskDrive.Tests.ps1" executed="True" result="Success" success="True" time="0.3031" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-LabVirtualMachineHardDiskDrive.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Remove-LabVirtualMachineHardDiskDrive" executed="True" result="Success" success="True" time="0.3031" asserts="0" description="Unit\Src\Private\Remove-LabVirtualMachineHardDiskDrive"> <results> <test-case description="Should not call 'Invoke-LabDscResource' when 'VhdPath' is specified" name="Unit\Src\Private\Remove-LabVirtualMachineHardDiskDrive.Should not call 'Invoke-LabDscResource' when 'VhdPath' is specified" time="0.2326" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should call 'Invoke-LabDscResource' once for each additional disk" name="Unit\Src\Private\Remove-LabVirtualMachineHardDiskDrive.Should call 'Invoke-LabDscResource' once for each additional disk" time="0.0414" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should call 'Invoke-LabDscResource' with 'Ensure' = 'Absent'" name="Unit\Src\Private\Remove-LabVirtualMachineHardDiskDrive.Should call 'Invoke-LabDscResource' with 'Ensure' = 'Absent'" time="0.0291" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-LabVMDisk.Tests.ps1" executed="True" result="Success" success="True" time="0.345" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-LabVMDisk.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Remove-LabVMDisk" executed="True" result="Success" success="True" time="0.345" asserts="0" description="Unit\Src\Private\Remove-LabVMDisk"> <results> <test-case description="Calls "Get-LabMedia" to resolve the parent VHDX path" name="Unit\Src\Private\Remove-LabVMDisk.Calls "Get-LabMedia" to resolve the parent VHDX path" time="0.2557" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-LabDscResource" with virtual "Ensure" = "Absent"" name="Unit\Src\Private\Remove-LabVMDisk.Calls "Invoke-LabDscResource" with virtual "Ensure" = "Absent"" time="0.0445" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" name="Unit\Src\Private\Remove-LabVMDisk.Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" time="0.0448" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-LabVMSnapshot.Tests.ps1" executed="True" result="Success" success="True" time="0.3772" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Remove-LabVMSnapshot.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Remove-LabVMSnapshot" executed="True" result="Success" success="True" time="0.3772" asserts="0" description="Unit\Src\Private\Remove-LabVMSnapshot"> <results> <test-case description="Calls "Get-VMSnapshot" for each virtual machine specified" name="Unit\Src\Private\Remove-LabVMSnapshot.Calls "Get-VMSnapshot" for each virtual machine specified" time="0.3109" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Remove-VMSnapshot" for each virtual machine snapshot" name="Unit\Src\Private\Remove-LabVMSnapshot.Calls "Remove-VMSnapshot" for each virtual machine snapshot" time="0.0662" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Rename-LabModuleCacheVersion.Tests.ps1" executed="True" result="Success" success="True" time="0.3526" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Rename-LabModuleCacheVersion.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Rename-LabModuleCacheVersion" executed="True" result="Success" success="True" time="0.3526" asserts="0" description="Unit\Src\Private\Rename-LabModuleCacheVersion"> <results> <test-case description="Returns a [System.IO.FileInfo] object type" name="Unit\Src\Private\Rename-LabModuleCacheVersion.Returns a [System.IO.FileInfo] object type" time="0.2513" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Renames PSGallery module to "<ModuleName>-v<Version>.zip" name="Unit\Src\Private\Rename-LabModuleCacheVersion.Renames PSGallery module to "<ModuleName>-v<Version>.zip" time="0.0249" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Renames GitHub module to "<ModuleName>-v<Version>_<Owner>_<Branch>.zip" name="Unit\Src\Private\Rename-LabModuleCacheVersion.Renames GitHub module to "<ModuleName>-v<Version>_<Owner>_<Branch>.zip" time="0.0247" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Removes existing cached module file" name="Unit\Src\Private\Rename-LabModuleCacheVersion.Removes existing cached module file" time="0.0519" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Reset-LabVMDisk.Tests.ps1" executed="True" result="Success" success="True" time="0.4632" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Reset-LabVMDisk.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Reset-LabVMDiskPath" executed="True" result="Success" success="True" time="0.4632" asserts="0" description="Unit\Src\Private\Reset-LabVMDiskPath"> <results> <test-case description="Removes any existing snapshots" name="Unit\Src\Private\Reset-LabVMDiskPath.Removes any existing snapshots" time="0.3405" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Removes the existing VHDX file" name="Unit\Src\Private\Reset-LabVMDiskPath.Removes the existing VHDX file" time="0.0417" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates a new VHDX file" name="Unit\Src\Private\Reset-LabVMDiskPath.Creates a new VHDX file" time="0.0367" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Remove-LabVMDisk" and "SetLabVMDisk" with "ConfigurationData" when specified (#97)" name="Unit\Src\Private\Reset-LabVMDiskPath.Calls "Remove-LabVMDisk" and "SetLabVMDisk" with "ConfigurationData" when specified (#97)" time="0.0443" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-ConfigurationDataPath.Tests.ps1" executed="True" result="Success" success="True" time="0.5404" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-ConfigurationDataPath.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-ConfigurationDataPath" executed="True" result="Success" success="True" time="0.5404" asserts="0" description="Unit\Src\Private\Resolve-ConfigurationDataPath"> <results> <test-case description="Resolves 'Host' to module path when custom configuration does not exist" name="Unit\Src\Private\Resolve-ConfigurationDataPath.Resolves 'Host' to module path when custom configuration does not exist" time="0.2711" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Resolves 'Host' to %ALLUSERSPROFILE% path when custom configuration does exist" name="Unit\Src\Private\Resolve-ConfigurationDataPath.Resolves 'Host' to %ALLUSERSPROFILE% path when custom configuration does exist" time="0.0221" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Resolves 'VM' to module path when custom configuration does not exist" name="Unit\Src\Private\Resolve-ConfigurationDataPath.Resolves 'VM' to module path when custom configuration does not exist" time="0.0354" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Resolves 'VM' to %ALLUSERSPROFILE% path when custom configuration does exist" name="Unit\Src\Private\Resolve-ConfigurationDataPath.Resolves 'VM' to %ALLUSERSPROFILE% path when custom configuration does exist" time="0.0261" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Resolves 'Media' to module path when custom configuration does not exist" name="Unit\Src\Private\Resolve-ConfigurationDataPath.Resolves 'Media' to module path when custom configuration does not exist" time="0.0379" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Resolves 'Media' to %ALLUSERSPROFILE% path when custom configuration does exist" name="Unit\Src\Private\Resolve-ConfigurationDataPath.Resolves 'Media' to %ALLUSERSPROFILE% path when custom configuration does exist" time="0.0323" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Resolves 'CustomMedia' to module path when custom configuration does not exist" name="Unit\Src\Private\Resolve-ConfigurationDataPath.Resolves 'CustomMedia' to module path when custom configuration does not exist" time="0.0474" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Resolves 'CustomMedia' to %ALLUSERSPROFILE% path when custom configuration does exist" name="Unit\Src\Private\Resolve-ConfigurationDataPath.Resolves 'CustomMedia' to %ALLUSERSPROFILE% path when custom configuration does exist" time="0.0235" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Resolves environment variables in resulting path" name="Unit\Src\Private\Resolve-ConfigurationDataPath.Resolves environment variables in resulting path" time="0.0445" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-ConfigurationPath.Tests.ps1" executed="True" result="Success" success="True" time="0.7529" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-ConfigurationPath.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-ConfigurationPath" executed="True" result="Success" success="True" time="0.7529" asserts="0" description="Unit\Src\Private\Resolve-ConfigurationPath"> <results> <test-case description="returns mof in the specified path root" name="Unit\Src\Private\Resolve-ConfigurationPath.returns mof in the specified path root" time="0.4211" asserts="0" success="True" result="Success" executed="True" /> <test-case description="returns mof in the specified path configuration folder" name="Unit\Src\Private\Resolve-ConfigurationPath.returns mof in the specified path configuration folder" time="0.079" asserts="0" success="True" result="Success" executed="True" /> <test-case description="returns mof in the Configurations folder" name="Unit\Src\Private\Resolve-ConfigurationPath.returns mof in the Configurations folder" time="0.0636" asserts="0" success="True" result="Success" executed="True" /> <test-case description="returns mof in the default Configurations configuration folder" name="Unit\Src\Private\Resolve-ConfigurationPath.returns mof in the default Configurations configuration folder" time="0.0576" asserts="0" success="True" result="Success" executed="True" /> <test-case description="returns mof in the $PWD" name="Unit\Src\Private\Resolve-ConfigurationPath.returns mof in the $PWD" time="0.0687" asserts="0" success="True" result="Success" executed="True" /> <test-case description="returns mof in the $PWD configuration folder" name="Unit\Src\Private\Resolve-ConfigurationPath.returns mof in the $PWD configuration folder" time="0.0628" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabConfigurationModule.Tests.ps1" executed="True" result="Success" success="True" time="0.5257" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabConfigurationModule.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-LabConfigurationModule" executed="True" result="Success" success="True" time="0.5257" asserts="0" description="Unit\Src\Private\Resolve-LabConfigurationModule"> <results> <test-case description="Returns all PowerShell modules if no "Name" is specified" name="Unit\Src\Private\Resolve-LabConfigurationModule.Returns all PowerShell modules if no "Name" is specified" time="0.3399" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns all PowerShell modules if "*" is specified" name="Unit\Src\Private\Resolve-LabConfigurationModule.Returns all PowerShell modules if "*" is specified" time="0.0161" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns all DSC resources if no "Name" is specified" name="Unit\Src\Private\Resolve-LabConfigurationModule.Returns all DSC resources if no "Name" is specified" time="0.0166" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns all DSC resources if "*" is specified" name="Unit\Src\Private\Resolve-LabConfigurationModule.Returns all DSC resources if "*" is specified" time="0.0151" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns matching PowerShell modules when "Name" is specified" name="Unit\Src\Private\Resolve-LabConfigurationModule.Returns matching PowerShell modules when "Name" is specified" time="0.0249" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns matching DSC resources when "Name" is specified" name="Unit\Src\Private\Resolve-LabConfigurationModule.Returns matching DSC resources when "Name" is specified" time="0.0225" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Warns if a PowerShell module cannot be resolved" name="Unit\Src\Private\Resolve-LabConfigurationModule.Warns if a PowerShell module cannot be resolved" time="0.0261" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Warns if a DSC resource cannot be resolved" name="Unit\Src\Private\Resolve-LabConfigurationModule.Warns if a DSC resource cannot be resolved" time="0.0256" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if a PowerShell module cannot be resolved and "ThrowIfNotFound" is specified" name="Unit\Src\Private\Resolve-LabConfigurationModule.Throws if a PowerShell module cannot be resolved and "ThrowIfNotFound" is specified" time="0.0186" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if a DSC resource cannot be resolved and "ThrowIfNotFound" is specified" name="Unit\Src\Private\Resolve-LabConfigurationModule.Throws if a DSC resource cannot be resolved and "ThrowIfNotFound" is specified" time="0.0202" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabCustomBootStrap.Tests.ps1" executed="True" result="Success" success="True" time="0.4452" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabCustomBootStrap.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Resolve-LabCustomBootStrap" executed="True" result="Success" success="True" time="0.4452" asserts="0" description="Src\Private\Resolve-LabCustomBootStrap"> <results> <test-case description="Returns empty string when "CustomBootStrapOrder" = "Disabled"" name="Src\Private\Resolve-LabCustomBootStrap.Returns empty string when "CustomBootStrapOrder" = "Disabled"" time="0.3379" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns configuration bootstrap when "CustomBootStrapOrder" = "ConfigurationOnly"" name="Src\Private\Resolve-LabCustomBootStrap.Returns configuration bootstrap when "CustomBootStrapOrder" = "ConfigurationOnly"" time="0.0161" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns media bootstrap when "CustomBootStrapOrder" = "MediaOnly"" name="Src\Private\Resolve-LabCustomBootStrap.Returns media bootstrap when "CustomBootStrapOrder" = "MediaOnly"" time="0.018" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns configuration bootstrap first when "CustomBootStrapOrder" = "ConfigurationFirst"" name="Src\Private\Resolve-LabCustomBootStrap.Returns configuration bootstrap first when "CustomBootStrapOrder" = "ConfigurationFirst"" time="0.0154" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns media bootstrap first when "CustomBootStrapOrder" = "MediaFirst"" name="Src\Private\Resolve-LabCustomBootStrap.Returns media bootstrap first when "CustomBootStrapOrder" = "MediaFirst"" time="0.0205" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns configuration bootstrap when "MediaCustomBootstrap" is null" name="Src\Private\Resolve-LabCustomBootStrap.Returns configuration bootstrap when "MediaCustomBootstrap" is null" time="0.0191" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns media bootstrap when "ConfigurationCustomBootstrap" is null" name="Src\Private\Resolve-LabCustomBootStrap.Returns media bootstrap when "ConfigurationCustomBootstrap" is null" time="0.0182" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabEnvironmentName.Tests.ps1" executed="True" result="Success" success="True" time="0.3999" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabEnvironmentName.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-LabEnvironmentName" executed="True" result="Success" success="True" time="0.3999" asserts="0" description="Unit\Src\Private\Resolve-LabEnvironmentName"> <results> <test-case description="Should return a "System.String" object type" name="Unit\Src\Private\Resolve-LabEnvironmentName.Should return a "System.String" object type" time="0.3319" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should return name when no environment prefix/suffix is defined" name="Unit\Src\Private\Resolve-LabEnvironmentName.Should return name when no environment prefix/suffix is defined" time="0.0145" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should return a prefixed name when environment prefix is defined" name="Unit\Src\Private\Resolve-LabEnvironmentName.Should return a prefixed name when environment prefix is defined" time="0.0191" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should return a suffixed name when environment suffix is defined" name="Unit\Src\Private\Resolve-LabEnvironmentName.Should return a suffixed name when environment suffix is defined" time="0.0184" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should return a prefixed/suffixed name when environment prefix and suffix is defined" name="Unit\Src\Private\Resolve-LabEnvironmentName.Should return a prefixed/suffixed name when environment prefix and suffix is defined" time="0.016" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabImage.Tests.ps1" executed="True" result="Success" success="True" time="0.4077" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabImage.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-LabImage" executed="True" result="Success" success="True" time="0.4077" asserts="0" description="Unit\Src\Private\Resolve-LabImage"> <results> <test-case description="resolves VHD/X path to the associated Lability image." name="Unit\Src\Private\Resolve-LabImage.resolves VHD/X path to the associated Lability image." time="0.4077" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabMedia.Tests.ps1" executed="True" result="Success" success="True" time="0.4704" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabMedia.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-LabMedia" executed="True" result="Success" success="True" time="0.4704" asserts="0" description="Unit\Src\Private\Resolve-LabMedia"> <results> <test-case description="Throws if media Id cannot be resolved" name="Unit\Src\Private\Resolve-LabMedia.Throws if media Id cannot be resolved" time="0.4169" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns configuration data media entry if it exists" name="Unit\Src\Private\Resolve-LabMedia.Returns configuration data media entry if it exists" time="0.0182" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns default media if configuration data entry does not exist" name="Unit\Src\Private\Resolve-LabMedia.Returns default media if configuration data entry does not exist" time="0.0353" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabModule.Tests.ps1" executed="True" result="Success" success="True" time="0.6191" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabModule.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-LabModule" executed="True" result="Success" success="True" time="0.6191" asserts="0" description="Unit\Src\Private\Resolve-LabModule"> <results> <test-case description="Returns "System.Collections.Hashtable" object type" name="Unit\Src\Private\Resolve-LabModule.Returns "System.Collections.Hashtable" object type" time="0.4058" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns all PowerShell modules when not defined on the node" name="Unit\Src\Private\Resolve-LabModule.Returns all PowerShell modules when not defined on the node" time="0.0451" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns all DSC resources when not defined on the node" name="Unit\Src\Private\Resolve-LabModule.Returns all DSC resources when not defined on the node" time="0.0315" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns PowerShell modules only defined on the node" name="Unit\Src\Private\Resolve-LabModule.Returns PowerShell modules only defined on the node" time="0.0329" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns DSC resource modules only defined on the node" name="Unit\Src\Private\Resolve-LabModule.Returns DSC resource modules only defined on the node" time="0.0283" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return installed modules when empty array is defined at node DSCResource (#211)" name="Unit\Src\Private\Resolve-LabModule.Does not return installed modules when empty array is defined at node DSCResource (#211)" time="0.0281" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return installed modules when empty array is defined at NonNodeData\Lability\DSCResource (#211)" name="Unit\Src\Private\Resolve-LabModule.Does not return installed modules when empty array is defined at NonNodeData\Lability\DSCResource (#211)" time="0.0473" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabResource.Tests.ps1" executed="True" result="Success" success="True" time="0.3651" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabResource.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-LabResource" executed="True" result="Success" success="True" time="0.3651" asserts="0" description="Unit\Src\Private\Resolve-LabResource"> <results> <test-case description="Returns resource record if "ResourceId" is found" name="Unit\Src\Private\Resolve-LabResource.Returns resource record if "ResourceId" is found" time="0.3495" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if "ResourceId" is not found" name="Unit\Src\Private\Resolve-LabResource.Throws if "ResourceId" is not found" time="0.0156" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabSwitch.Tests.ps1" executed="True" result="Success" success="True" time="0.6644" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabSwitch.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-LabSwitch" executed="True" result="Success" success="True" time="0.6644" asserts="0" description="Unit\Src\Private\Resolve-LabSwitch"> <results> <test-case description="Returns a "System.Collections.Hashtable" object type" name="Unit\Src\Private\Resolve-LabSwitch.Returns a "System.Collections.Hashtable" object type" time="0.3537" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns specified network switch from configuration data if defined" name="Unit\Src\Private\Resolve-LabSwitch.Returns specified network switch from configuration data if defined" time="0.0532" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns existing "External" switch if "Name" cannot be resolved" name="Unit\Src\Private\Resolve-LabSwitch.Returns existing "External" switch if "Name" cannot be resolved" time="0.0639" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a default "Internal" switch if the switch cannot be resolved" name="Unit\Src\Private\Resolve-LabSwitch.Returns a default "Internal" switch if the switch cannot be resolved" time="0.0488" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return a prefixed switch name when DisableSwitchEnvironmentName is enabled" name="Unit\Src\Private\Resolve-LabSwitch.Does not return a prefixed switch name when DisableSwitchEnvironmentName is enabled" time="0.0405" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a prefixed switch name when an environment prefix is defined" name="Unit\Src\Private\Resolve-LabSwitch.Returns a prefixed switch name when an environment prefix is defined" time="0.0483" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a suffixed switch name when an environment suffix is defined" name="Unit\Src\Private\Resolve-LabSwitch.Returns a suffixed switch name when an environment suffix is defined" time="0.056" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabVMDisk.Tests.ps1" executed="True" result="Success" success="True" time="0.3437" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabVMDisk.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-LabVMDiskPath" executed="True" result="Success" success="True" time="0.3437" asserts="0" description="Unit\Src\Private\Resolve-LabVMDiskPath"> <results> <test-case description="Appends the VM's name to the host "DifferencingVhdPath"" name="Unit\Src\Private\Resolve-LabVMDiskPath.Appends the VM's name to the host "DifferencingVhdPath"" time="0.3437" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabVMDiskPath.Tests.ps1" executed="True" result="Success" success="True" time="0.3383" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabVMDiskPath.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-LabVMDiskPath" executed="True" result="Success" success="True" time="0.3383" asserts="0" description="Unit\Src\Private\Resolve-LabVMDiskPath"> <results> <test-case description="Appends the VM's name to the host "DifferencingVhdPath"" name="Unit\Src\Private\Resolve-LabVMDiskPath.Appends the VM's name to the host "DifferencingVhdPath"" time="0.3383" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabVMGenerationDiskPath.Tests.ps1" executed="True" result="Success" success="True" time="0.3927" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-LabVMGenerationDiskPath.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-LabVMGenerationDiskPath" executed="True" result="Success" success="True" time="0.3927" asserts="0" description="Unit\Src\Private\Resolve-LabVMGenerationDiskPath"> <results> <test-case description="Resolves .VHDX media differencing path" name="Unit\Src\Private\Resolve-LabVMGenerationDiskPath.Resolves .VHDX media differencing path" time="0.3604" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Resolves .VHD media differencing path" name="Unit\Src\Private\Resolve-LabVMGenerationDiskPath.Resolves .VHD media differencing path" time="0.0322" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-NodePropertyValue.Tests.ps1" executed="True" result="Success" success="True" time="0.5851" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-NodePropertyValue.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-NodePropertyValue" executed="True" result="Success" success="True" time="0.5851" asserts="0" description="Unit\Src\Private\Resolve-NodePropertyValue"> <results> <test-case description="Returns a "System.Collections.Hashtable" object type" name="Unit\Src\Private\Resolve-NodePropertyValue.Returns a "System.Collections.Hashtable" object type" time="0.3382" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns node-specific configuration data when present" name="Unit\Src\Private\Resolve-NodePropertyValue.Returns node-specific configuration data when present" time="0.0277" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns node-specific configuration data when present and "NoEnumerateWildcardNode" is specified" name="Unit\Src\Private\Resolve-NodePropertyValue.Returns node-specific configuration data when present and "NoEnumerateWildcardNode" is specified" time="0.0275" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns wildcard node when node-specific data is not defined" name="Unit\Src\Private\Resolve-NodePropertyValue.Returns wildcard node when node-specific data is not defined" time="0.0324" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns default when "NoEnumerateWildcardNode" is specified and node-specific data is not defined" name="Unit\Src\Private\Resolve-NodePropertyValue.Returns default when "NoEnumerateWildcardNode" is specified and node-specific data is not defined" time="0.0381" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns default if wildcard and node-specific data is not present" name="Unit\Src\Private\Resolve-NodePropertyValue.Returns default if wildcard and node-specific data is not present" time="0.0334" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns "Lability_" specific properties over generic properties" name="Unit\Src\Private\Resolve-NodePropertyValue.Returns "Lability_" specific properties over generic properties" time="0.0293" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Adds "EnvironmentPrefix" to "NodeDisplayName" when defined" name="Unit\Src\Private\Resolve-NodePropertyValue.Adds "EnvironmentPrefix" to "NodeDisplayName" when defined" time="0.0311" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Adds "EnvironmentSuffix" to "NodeDisplayName" when defined" name="Unit\Src\Private\Resolve-NodePropertyValue.Adds "EnvironmentSuffix" to "NodeDisplayName" when defined" time="0.0274" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-PathEx.Tests.ps1" executed="True" result="Success" success="True" time="0.3984" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-PathEx.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-PathEx" executed="True" result="Success" success="True" time="0.3984" asserts="0" description="Unit\Src\Private\Resolve-PathEx"> <results> <test-case description="Resolves existing home path" name="Unit\Src\Private\Resolve-PathEx.Resolves existing home path" time="0.3612" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Resolves non-existent home path" name="Unit\Src\Private\Resolve-PathEx.Resolves non-existent home path" time="0.0373" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-PSGalleryModuleUri.Tests.ps1" executed="True" result="Success" success="True" time="0.3658" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Resolve-PSGalleryModuleUri.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Resolve-PSGalleryModuleUri" executed="True" result="Success" success="True" time="0.3658" asserts="0" description="Unit\Src\Private\Resolve-PSGalleryModuleUri"> <results> <test-case description="Returns default PowerShell Galleyr Uri" name="Unit\Src\Private\Resolve-PSGalleryModuleUri.Returns default PowerShell Galleyr Uri" time="0.3272" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns specified Uri" name="Unit\Src\Private\Resolve-PSGalleryModuleUri.Returns specified Uri" time="0.013" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns Uri with specific version number when "RequiredVersion" is specified" name="Unit\Src\Private\Resolve-PSGalleryModuleUri.Returns Uri with specific version number when "RequiredVersion" is specified" time="0.0255" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-ConfigurationData.Tests.ps1" executed="True" result="Success" success="True" time="0" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-ConfigurationData.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-ConfigurationData" executed="True" result="Success" success="True" time="0" asserts="0" description="Unit\Src\Private\Set-ConfigurationData"> <results /> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-DiskImageBootVolume.Tests.ps1" executed="True" result="Success" success="True" time="0.6851" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-DiskImageBootVolume.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Set-DiskImageBootVolume" executed="True" result="Success" success="True" time="0.6851" asserts="0" description="Src\Private\Set-DiskImageBootVolume"> <results> <test-case description="Calls "Set-DiskImageBootVolumeGpt" when partition style is GPT" name="Src\Private\Set-DiskImageBootVolume.Calls "Set-DiskImageBootVolumeGpt" when partition style is GPT" time="0.6451" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-DiskImageBootVolumeMbr" when partition style is MBR" name="Src\Private\Set-DiskImageBootVolume.Calls "Set-DiskImageBootVolumeMbr" when partition style is MBR" time="0.04" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-DiskImageBootVolumeGpt.Tests.ps1" executed="True" result="Success" success="True" time="0.4779" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-DiskImageBootVolumeGpt.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Set-DiskImageBootVolumeGpt" executed="True" result="Success" success="True" time="0.4779" asserts="0" description="Src\Private\Set-DiskImageBootVolumeGpt"> <results> <test-case description="Calls "BCDBOOT.EXE" with "/f UEFI"" name="Src\Private\Set-DiskImageBootVolumeGpt.Calls "BCDBOOT.EXE" with "/f UEFI"" time="0.4779" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-DiskImageBootVolumeMbr.Tests.ps1" executed="True" result="Success" success="True" time="0.4674" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-DiskImageBootVolumeMbr.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Set-DiskImageBootVolumeMbr" executed="True" result="Success" success="True" time="0.4674" asserts="0" description="Src\Private\Set-DiskImageBootVolumeMbr"> <results> <test-case description="Calls "BCDBOOT.EXE" with "/f BIOS"" name="Src\Private\Set-DiskImageBootVolumeMbr.Calls "BCDBOOT.EXE" with "/f BIOS"" time="0.3843" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "BCDEDIT.EXE" thrice" name="Src\Private\Set-DiskImageBootVolumeMbr.Calls "BCDEDIT.EXE" thrice" time="0.0831" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabBootStrap.Tests.ps1" executed="True" result="Success" success="True" time="0.4991" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabBootStrap.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Set-LabBootStrap" executed="True" result="Success" success="True" time="0.4991" asserts="0" description="Src\Private\Set-LabBootStrap"> <results> <test-case description="Creates target file "BootStrap.ps1"" name="Src\Private\Set-LabBootStrap.Creates target file "BootStrap.ps1"" time="0.3892" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Replaces custom BootStrap injection point with custom BootStrap" name="Src\Private\Set-LabBootStrap.Replaces custom BootStrap injection point with custom BootStrap" time="0.048" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Uses UTF8 encoding" name="Src\Private\Set-LabBootStrap.Uses UTF8 encoding" time="0.0619" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabDscResource.Tests.ps1" executed="True" result="Success" success="True" time="0.3416" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabDscResource.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Set-LabDscResource" executed="True" result="Success" success="True" time="0.3416" asserts="0" description="Src\Private\Set-LabDscResource"> <results> <test-case description="Calls "Set-<ResourceName>TargetResource" method" name="Src\Private\Set-LabDscResource.Calls "Set-<ResourceName>TargetResource" method" time="0.3416" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabSetupCompleteCmd.Tests.ps1" executed="True" result="Success" success="True" time="0.5355" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabSetupCompleteCmd.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Set-LabSetupCompleteCmd" executed="True" result="Success" success="True" time="0.5355" asserts="0" description="Src\Private\Set-LabSetupCompleteCmd"> <results> <test-case description="Creates target file "SetupComplete.cmd"" name="Src\Private\Set-LabSetupCompleteCmd.Creates target file "SetupComplete.cmd"" time="0.3201" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Bypasses Powershell execution policy" name="Src\Private\Set-LabSetupCompleteCmd.Bypasses Powershell execution policy" time="0.0286" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Runs non-interactively" name="Src\Private\Set-LabSetupCompleteCmd.Runs non-interactively" time="0.0577" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates scheduled tasks for CoreCLR image" name="Src\Private\Set-LabSetupCompleteCmd.Creates scheduled tasks for CoreCLR image" time="0.084" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Uses ASCII encoding" name="Src\Private\Set-LabSetupCompleteCmd.Uses ASCII encoding" time="0.045" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabSwitch.Tests.ps1" executed="True" result="Success" success="True" time="0.4072" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabSwitch.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabSwitch" executed="True" result="Success" success="True" time="0.4072" asserts="0" description="Unit\Src\Private\Set-LabSwitch"> <results> <test-case description="Calls "Invoke-LabDscResource"" name="Unit\Src\Private\Set-LabSwitch.Calls "Invoke-LabDscResource"" time="0.3549" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not call "Invoke-LabDscResource" for an existing switch" name="Unit\Src\Private\Set-LabSwitch.Does not call "Invoke-LabDscResource" for an existing switch" time="0.0523" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVirtualMachine.Tests.ps1" executed="True" result="Success" success="True" time="0.4519" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVirtualMachine.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabVirtualMachine" executed="True" result="Success" success="True" time="0.4519" asserts="0" description="Unit\Src\Private\Set-LabVirtualMachine"> <results> <test-case description="Imports Hyper-V DSC resource" name="Unit\Src\Private\Set-LabVirtualMachine.Imports Hyper-V DSC resource" time="0.3578" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Invokes Hyper-V DSC resource" name="Unit\Src\Private\Set-LabVirtualMachine.Invokes Hyper-V DSC resource" time="0.0522" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabVirtualMachineProperty" with "ConfigurationData" when specified (#97)" name="Unit\Src\Private\Set-LabVirtualMachine.Calls "Get-LabVirtualMachineProperty" with "ConfigurationData" when specified (#97)" time="0.042" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVirtualMachineHardDiskDrive.Tests.ps1" executed="True" result="Success" success="True" time="0.3903" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVirtualMachineHardDiskDrive.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabVirtualMachineHardDiskDrive" executed="True" result="Success" success="True" time="0.3903" asserts="0" description="Unit\Src\Private\Set-LabVirtualMachineHardDiskDrive"> <results> <test-case description="Should call 'Invoke-LabDscResource' to create VHD when 'VhdPath' is not specified" name="Unit\Src\Private\Set-LabVirtualMachineHardDiskDrive.Should call 'Invoke-LabDscResource' to create VHD when 'VhdPath' is not specified" time="0.3161" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should call 'Invoke-LabDscResource' once for each additional disk" name="Unit\Src\Private\Set-LabVirtualMachineHardDiskDrive.Should call 'Invoke-LabDscResource' once for each additional disk" time="0.0743" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDisk.Tests.ps1" executed="True" result="Success" success="True" time="0.4867" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDisk.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabVMDiskPath" executed="True" result="Success" success="True" time="0.4867" asserts="0" description="Unit\Src\Private\Set-LabVMDiskPath"> <results> <test-case description="Calls "Get-LabMedia" to resolve the parent VHDX path" name="Unit\Src\Private\Set-LabVMDiskPath.Calls "Get-LabMedia" to resolve the parent VHDX path" time="0.3989" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-LabDscResource" with virtual machine name" name="Unit\Src\Private\Set-LabVMDiskPath.Calls "Invoke-LabDscResource" with virtual machine name" time="0.0527" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" name="Unit\Src\Private\Set-LabVMDiskPath.Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" time="0.0351" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFile.Tests.ps1" executed="True" result="Success" success="True" time="1.5753" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFile.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabVMDiskFile" executed="True" result="Success" success="True" time="1.5753" asserts="0" description="Unit\Src\Private\Set-LabVMDiskFile"> <results> <test-case description="Stops "ShellHWDetection" service" name="Unit\Src\Private\Set-LabVMDiskFile.Stops "ShellHWDetection" service" time="0.3634" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Mounts virtual machine VHDX file" name="Unit\Src\Private\Set-LabVMDiskFile.Mounts virtual machine VHDX file" time="0.0933" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Starts "ShellHWDetection" service" name="Unit\Src\Private\Set-LabVMDiskFile.Starts "ShellHWDetection" service" time="0.0946" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabVMDiskFileResource" to copy node resources" name="Unit\Src\Private\Set-LabVMDiskFile.Calls "Set-LabVMDiskFileResource" to copy node resources" time="0.0944" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabVMDiskFileBootstrap" to copy Lability bootstrap" name="Unit\Src\Private\Set-LabVMDiskFile.Calls "Set-LabVMDiskFileBootstrap" to copy Lability bootstrap" time="0.0948" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabVMDiskFileUnattendXml" to copy unattended installation file" name="Unit\Src\Private\Set-LabVMDiskFile.Calls "Set-LabVMDiskFileUnattendXml" to copy unattended installation file" time="0.1" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabVMDiskFileMof" to copy node DSC configuaration files" name="Unit\Src\Private\Set-LabVMDiskFile.Calls "Set-LabVMDiskFileMof" to copy node DSC configuaration files" time="0.0954" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabVMDiskFileCertificate" to copy node certificate files" name="Unit\Src\Private\Set-LabVMDiskFile.Calls "Set-LabVMDiskFileCertificate" to copy node certificate files" time="0.2833" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabVMDiskFileModule" to copy PowerShell/DSC resource modules" name="Unit\Src\Private\Set-LabVMDiskFile.Calls "Set-LabVMDiskFileModule" to copy PowerShell/DSC resource modules" time="0.1165" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Dismounts virtual machine VHDX file" name="Unit\Src\Private\Set-LabVMDiskFile.Dismounts virtual machine VHDX file" time="0.1519" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Dismounts virtual machine VHDX file when error is thrown" name="Unit\Src\Private\Set-LabVMDiskFile.Dismounts virtual machine VHDX file when error is thrown" time="0.0877" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileBootstrap.Tests.ps1" executed="True" result="Success" success="True" time="0.339" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileBootstrap.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabVMDiskFileBootstrap" executed="True" result="Success" success="True" time="0.339" asserts="0" description="Unit\Src\Private\Set-LabVMDiskFileBootstrap"> <results> <test-case description="Calls "Set-LabBootStrap" to inject default bootstrap" name="Unit\Src\Private\Set-LabVMDiskFileBootstrap.Calls "Set-LabBootStrap" to inject default bootstrap" time="0.2495" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabBootStrap" to inject custom bootstrap when specified" name="Unit\Src\Private\Set-LabVMDiskFileBootstrap.Calls "Set-LabBootStrap" to inject custom bootstrap when specified" time="0.0319" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabBootStrap" with "CoreCLR" to inject CoreCLR bootstrap when specified" name="Unit\Src\Private\Set-LabVMDiskFileBootstrap.Calls "Set-LabBootStrap" with "CoreCLR" to inject CoreCLR bootstrap when specified" time="0.0314" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabSetupCompleteCmd" with "\Windows\Setup\Scripts" path" name="Unit\Src\Private\Set-LabVMDiskFileBootstrap.Calls "Set-LabSetupCompleteCmd" with "\Windows\Setup\Scripts" path" time="0.0262" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileCertificate.Tests.ps1" executed="True" result="Success" success="True" time="0.3806" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileCertificate.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabVMDiskFileCertificate" executed="True" result="Success" success="True" time="0.3806" asserts="0" description="Unit\Src\Private\Set-LabVMDiskFileCertificate"> <results> <test-case description="Copies default client certificate" name="Unit\Src\Private\Set-LabVMDiskFileCertificate.Copies default client certificate" time="0.2552" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Copies default root certificate" name="Unit\Src\Private\Set-LabVMDiskFileCertificate.Copies default root certificate" time="0.0435" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Copies custom client certificate" name="Unit\Src\Private\Set-LabVMDiskFileCertificate.Copies custom client certificate" time="0.0388" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Copies custom root certificate" name="Unit\Src\Private\Set-LabVMDiskFileCertificate.Copies custom root certificate" time="0.0432" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileModule.Tests.ps1" executed="True" result="Success" success="True" time="0.3414" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileModule.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabVMDiskFileModule" executed="True" result="Success" success="True" time="0.3414" asserts="0" description="Unit\Src\Private\Set-LabVMDiskFileModule"> <results> <test-case description="Calls "Resolve-LabModule" to query DSC resource modules" name="Unit\Src\Private\Set-LabVMDiskFileModule.Calls "Resolve-LabModule" to query DSC resource modules" time="0.2509" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Resolve-LabModule" to query PowerShell modules" name="Unit\Src\Private\Set-LabVMDiskFileModule.Calls "Resolve-LabModule" to query PowerShell modules" time="0.0456" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabVMDiskModule" to expand modules" name="Unit\Src\Private\Set-LabVMDiskFileModule.Calls "Set-LabVMDiskModule" to expand modules" time="0.0449" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileMof.Tests.ps1" executed="True" result="Success" success="True" time="0.379" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileMof.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabVMDiskFileMof" executed="True" result="Success" success="True" time="0.379" asserts="0" description="Unit\Src\Private\Set-LabVMDiskFileMof"> <results> <test-case description="Warns if .mof file cannot be found" name="Unit\Src\Private\Set-LabVMDiskFileMof.Warns if .mof file cannot be found" time="0.2458" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Copies .mof file if found" name="Unit\Src\Private\Set-LabVMDiskFileMof.Copies .mof file if found" time="0.0629" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Copies .meta.mof file if found" name="Unit\Src\Private\Set-LabVMDiskFileMof.Copies .meta.mof file if found" time="0.0704" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileResource.Tests.ps1" executed="True" result="Success" success="True" time="0.2403" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileResource.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabVMDiskFileResource" executed="True" result="Success" success="True" time="0.2403" asserts="0" description="Unit\Src\Private\Set-LabVMDiskFileResource"> <results> <test-case description="Calls "Expand-LabResource" using "ResourceShare" path" name="Unit\Src\Private\Set-LabVMDiskFileResource.Calls "Expand-LabResource" using "ResourceShare" path" time="0.2403" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileUnattendXml.Tests.ps1" executed="True" result="Success" success="True" time="0.3491" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskFileUnattendXml.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabVMDiskFileUnattendXml" executed="True" result="Success" success="True" time="0.3491" asserts="0" description="Unit\Src\Private\Set-LabVMDiskFileUnattendXml"> <results> <test-case description="Calls "Set-UnattendXml" to create "\Windows\System32\Sysprep\Unattend.xml" file" name="Unit\Src\Private\Set-LabVMDiskFileUnattendXml.Calls "Set-UnattendXml" to create "\Windows\System32\Sysprep\Unattend.xml" file" time="0.2481" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes node "ProductKey" when specified (#134)" name="Unit\Src\Private\Set-LabVMDiskFileUnattendXml.Passes node "ProductKey" when specified (#134)" time="0.0317" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes media "ProductKey" when specified (#134)" name="Unit\Src\Private\Set-LabVMDiskFileUnattendXml.Passes media "ProductKey" when specified (#134)" time="0.0364" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes node "ProductKey" when node and media key specified (#134)" name="Unit\Src\Private\Set-LabVMDiskFileUnattendXml.Passes node "ProductKey" when node and media key specified (#134)" time="0.0329" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskModule.Tests.ps1" executed="True" result="Success" success="True" time="0.2725" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-LabVMDiskModule.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-LabVMDiskModule" executed="True" result="Success" success="True" time="0.2725" asserts="0" description="Unit\Src\Private\Set-LabVMDiskModule"> <results> <test-case description="Calls "Invoke-LabModuleCacheDownload" with "Force" when specified" name="Unit\Src\Private\Set-LabVMDiskModule.Calls "Invoke-LabModuleCacheDownload" with "Force" when specified" time="0.2432" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-LabModuleCache" with "Clean" when specified" name="Unit\Src\Private\Set-LabVMDiskModule.Calls "Expand-LabModuleCache" with "Clean" when specified" time="0.0293" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-ResourceDownload.Tests.ps1" executed="True" result="Success" success="True" time="0.4832" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-ResourceDownload.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Set-ResourceDownload" executed="True" result="Success" success="True" time="0.4832" asserts="0" description="Unit\Src\Private\Set-ResourceDownload"> <results> <test-case description="Calls "Invoke-WebClientDownload" with specified Uri" name="Unit\Src\Private\Set-ResourceDownload.Calls "Invoke-WebClientDownload" with specified Uri" time="0.2464" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-WebClientDownload" with specified destination Path" name="Unit\Src\Private\Set-ResourceDownload.Calls "Invoke-WebClientDownload" with specified destination Path" time="0.0321" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-WebClientDownload" with default 64KB buffer size" name="Unit\Src\Private\Set-ResourceDownload.Calls "Invoke-WebClientDownload" with default 64KB buffer size" time="0.0386" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-WebClientDownload" with 1MB buffer size for file resource" name="Unit\Src\Private\Set-ResourceDownload.Calls "Invoke-WebClientDownload" with 1MB buffer size for file resource" time="0.0467" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates checksum file after download" name="Unit\Src\Private\Set-ResourceDownload.Creates checksum file after download" time="0.0615" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates target parent directory if it does not exist" name="Unit\Src\Private\Set-ResourceDownload.Creates target parent directory if it does not exist" time="0.0579" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-UnattendXml.Tests.ps1" executed="True" result="Success" success="True" time="0.247" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Set-UnattendXml.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Set-UnattendXml" executed="True" result="Success" success="True" time="0.247" asserts="0" description="Src\Private\Set-UnattendXml"> <results> <test-case description="Saves Xml file to disk" name="Src\Private\Set-UnattendXml.Saves Xml file to disk" time="0.247" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-ComputerName.Tests.ps1" executed="True" result="Success" success="True" time="0.6366" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-ComputerName.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Test-ComputerName" executed="True" result="Success" success="True" time="0.6366" asserts="0" description="Src\Private\Test-ComputerName"> <results> <test-case description="Passes when computer name does not contain invalid characters" name="Src\Private\Test-ComputerName.Passes when computer name does not contain invalid characters" time="0.2158" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '~' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '~' character" time="0.0122" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '!' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '!' character" time="0.0133" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '@' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '@' character" time="0.0138" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '#' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '#' character" time="0.0121" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '$' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '$' character" time="0.0154" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '%' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '%' character" time="0.0139" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '^' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '^' character" time="0.0151" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '&' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '&' character" time="0.0146" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '*' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '*' character" time="0.0133" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '(' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '(' character" time="0.0138" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid ')' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid ')' character" time="0.0119" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '=' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '=' character" time="0.015" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '+' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '+' character" time="0.0124" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '_' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '_' character" time="0.011" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '[' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '[' character" time="0.0136" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid ']' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid ']' character" time="0.0142" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '{' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '{' character" time="0.0156" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '}' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '}' character" time="0.0154" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '\' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '\' character" time="0.0097" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '|' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '|' character" time="0.0135" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid ';' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid ';' character" time="0.0135" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid ':' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid ':' character" time="0.0164" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '.' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '.' character" time="0.0143" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid ''' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid ''' character" time="0.0147" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '"' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '"' character" time="0.0133" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid ',' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid ',' character" time="0.0126" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '<' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '<' character" time="0.0132" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '>' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '>' character" time="0.0146" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '/' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '/' character" time="0.0132" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid '?' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid '?' character" time="0.0114" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when computer name contains invalid ' ' character" name="Src\Private\Test-ComputerName.Fails when computer name contains invalid ' ' character" time="0.0139" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-ConfigurationPath.Tests.ps1" executed="True" result="Success" success="True" time="0.266" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-ConfigurationPath.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Test-ConfigurationPath" executed="True" result="Success" success="True" time="0.266" asserts="0" description="Unit\Src\Private\Test-ConfigurationPath"> <results> <test-case description="returns $true when .mof found" name="Unit\Src\Private\Test-ConfigurationPath.returns $true when .mof found" time="0.2313" asserts="0" success="True" result="Success" executed="True" /> <test-case description="returns $true when .meta.mof found" name="Unit\Src\Private\Test-ConfigurationPath.returns $true when .meta.mof found" time="0.0159" asserts="0" success="True" result="Success" executed="True" /> <test-case description="returns $false when .mof and .meta.mof not found" name="Unit\Src\Private\Test-ConfigurationPath.returns $false when .mof and .meta.mof not found" time="0.0187" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-DscResource.Tests.ps1" executed="True" result="Success" success="True" time="0.3766" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-DscResource.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Test-LabDscResource" executed="True" result="Success" success="True" time="0.3766" asserts="0" description="Src\Private\Test-LabDscResource"> <results> <test-case description="Calls "Test-<ResourceName>TargetResource" method" name="Src\Private\Test-LabDscResource.Calls "Test-<ResourceName>TargetResource" method" time="0.3382" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Return $false when "Test-<ResourceName>TargetResource" throws (#104)" name="Src\Private\Test-LabDscResource.Return $false when "Test-<ResourceName>TargetResource" throws (#104)" time="0.0384" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-DscResourceModule.Tests.ps1" executed="True" result="Success" success="True" time="0.4006" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-DscResourceModule.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Test-DscResourceModule" executed="True" result="Success" success="True" time="0.4006" asserts="0" description="Src\Private\Test-DscResourceModule"> <results> <test-case description="Returns "True" when the module contains a "DSCResources" folder" name="Src\Private\Test-DscResourceModule.Returns "True" when the module contains a "DSCResources" folder" time="0.3305" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns "False" when the module does not contain a "DSCResources" folder" name="Src\Private\Test-DscResourceModule.Returns "False" when the module does not contain a "DSCResources" folder" time="0.0179" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns "True" when the module .psm1 contains a "[DSCResource()]" definition" name="Src\Private\Test-DscResourceModule.Returns "True" when the module .psm1 contains a "[DSCResource()]" definition" time="0.0262" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns "False" when the module .psm1 does not contain a "[DSCResource()]" definition" name="Src\Private\Test-DscResourceModule.Returns "False" when the module .psm1 does not contain a "[DSCResource()]" definition" time="0.026" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabDscModule.Tests.ps1" executed="True" result="Success" success="True" time="0.37" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabDscModule.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Test-LabDscModule" executed="True" result="Success" success="True" time="0.37" asserts="0" description="Src\Private\Test-LabDscModule"> <results> <test-case description="Returns true if "Get-LabDscModule" returns a path" name="Src\Private\Test-LabDscModule.Returns true if "Get-LabDscModule" returns a path" time="0.343" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns false if "Get-LabDscModule" fails" name="Src\Private\Test-LabDscModule.Returns false if "Get-LabDscModule" fails" time="0.027" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabModuleCache.Tests.ps1" executed="True" result="Success" success="True" time="0.3782" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabModuleCache.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Test-LabModuleCache" executed="True" result="Success" success="True" time="0.3782" asserts="0" description="Unit\Src\Private\Test-LabModuleCache"> <results> <test-case description="Passes when module is found" name="Unit\Src\Private\Test-LabModuleCache.Passes when module is found" time="0.3529" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when module is not found" name="Unit\Src\Private\Test-LabModuleCache.Fails when module is not found" time="0.0253" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabMofModule.Tests.ps1" executed="True" result="Success" success="True" time="1.0403" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabMofModule.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Test-LabMofModule" executed="True" result="Success" success="True" time="1.0403" asserts="0" description="Unit\Src\Private\Test-LabMofModule"> <results> <test-case description="Passes when module is defined (no version)" name="Unit\Src\Private\Test-LabMofModule.Passes when module is defined (no version)" time="0.3236" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when module is not defined (no version)" name="Unit\Src\Private\Test-LabMofModule.Fails when module is not defined (no version)" time="0.0153" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes when module version matches (MinimumVersion)" name="Unit\Src\Private\Test-LabMofModule.Passes when module version matches (MinimumVersion)" time="0.021" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when module version does not match (MinimumVersion)" name="Unit\Src\Private\Test-LabMofModule.Fails when module version does not match (MinimumVersion)" time="0.6446" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes when module version matches (RequiredVersion)" name="Unit\Src\Private\Test-LabMofModule.Passes when module version matches (RequiredVersion)" time="0.0172" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when module version does not match (RequiredVersion)" name="Unit\Src\Private\Test-LabMofModule.Fails when module version does not match (RequiredVersion)" time="0.0187" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabResourceIsLocal.Tests.ps1" executed="True" result="Success" success="True" time="0.3573" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabResourceIsLocal.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Invoke-LabResourceDownload" executed="True" result="Success" success="True" time="0.3573" asserts="0" description="Unit\Src\Private\Invoke-LabResourceDownload"> <results> <test-case description="Returns "System.Boolean" object type" name="Unit\Src\Private\Invoke-LabResourceDownload.Returns "System.Boolean" object type" time="0.2421" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes when local .EXE exists" name="Unit\Src\Private\Invoke-LabResourceDownload.Passes when local .EXE exists" time="0.013" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when local .EXE does not exist" name="Unit\Src\Private\Invoke-LabResourceDownload.Fails when local .EXE does not exist" time="0.0129" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes when local ISO folder exists" name="Unit\Src\Private\Invoke-LabResourceDownload.Passes when local ISO folder exists" time="0.0224" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when local ISO folder does not exist" name="Unit\Src\Private\Invoke-LabResourceDownload.Fails when local ISO folder does not exist" time="0.0141" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes when local ZIP folder exists" name="Unit\Src\Private\Invoke-LabResourceDownload.Passes when local ZIP folder exists" time="0.0132" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when local ZIP folder does not exist" name="Unit\Src\Private\Invoke-LabResourceDownload.Fails when local ZIP folder does not exist" time="0.0209" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when local .EXE has "Expand" = "True"" name="Unit\Src\Private\Invoke-LabResourceDownload.Throws when local .EXE has "Expand" = "True"" time="0.0187" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabSwitch.Tests.ps1" executed="True" result="Success" success="True" time="0.318" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabSwitch.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Test-LabSwitch" executed="True" result="Success" success="True" time="0.318" asserts="0" description="Unit\Src\Private\Test-LabSwitch"> <results> <test-case description="Passes when network switch is found" name="Unit\Src\Private\Test-LabSwitch.Passes when network switch is found" time="0.2485" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes when an existing switch is found" name="Unit\Src\Private\Test-LabSwitch.Passes when an existing switch is found" time="0.0211" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when network switch is not found" name="Unit\Src\Private\Test-LabSwitch.Fails when network switch is not found" time="0.0484" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabVirtualMachine.Tests.ps1" executed="True" result="Success" success="True" time="0.423" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabVirtualMachine.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Test-LabVirtualMachine" executed="True" result="Success" success="True" time="0.423" asserts="0" description="Unit\Src\Private\Test-LabVirtualMachine"> <results> <test-case description="Imports Hyper-V DSC resource" name="Unit\Src\Private\Test-LabVirtualMachine.Imports Hyper-V DSC resource" time="0.2623" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns true when VM matches specified configuration" name="Unit\Src\Private\Test-LabVirtualMachine.Returns true when VM matches specified configuration" time="0.0413" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns false when VM does not match specified configuration" name="Unit\Src\Private\Test-LabVirtualMachine.Returns false when VM does not match specified configuration" time="0.042" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns false when error is thrown" name="Unit\Src\Private\Test-LabVirtualMachine.Returns false when error is thrown" time="0.0411" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabVirtualMachineProperty" with "ConfigurationData" when specified (#97)" name="Unit\Src\Private\Test-LabVirtualMachine.Calls "Get-LabVirtualMachineProperty" with "ConfigurationData" when specified (#97)" time="0.0364" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabVMDisk.Tests.ps1" executed="True" result="Success" success="True" time="0.3898" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-LabVMDisk.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Test-LabVMDiskPath" executed="True" result="Success" success="True" time="0.3898" asserts="0" description="Unit\Src\Private\Test-LabVMDiskPath"> <results> <test-case description="Calls "Get-LabMedia" to resolve the parent VHDX path" name="Unit\Src\Private\Test-LabVMDiskPath.Calls "Get-LabMedia" to resolve the parent VHDX path" time="0.2506" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "TestDscResource" with virtual machine name" name="Unit\Src\Private\Test-LabVMDiskPath.Calls "TestDscResource" with virtual machine name" time="0.0313" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "TestDscResource" with "MaximumSize" when image is not available (#104)" name="Unit\Src\Private\Test-LabVMDiskPath.Calls "TestDscResource" with "MaximumSize" when image is not available (#104)" time="0.0357" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "TestDscResource" with "VHDX" when image is not available (#104)" name="Unit\Src\Private\Test-LabVMDiskPath.Calls "TestDscResource" with "VHDX" when image is not available (#104)" time="0.0343" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" name="Unit\Src\Private\Test-LabVMDiskPath.Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" time="0.0379" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-ResourceDownload.Tests.ps1" executed="True" result="Success" success="True" time="0.3337" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-ResourceDownload.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Test-ResourceDownload" executed="True" result="Success" success="True" time="0.3337" asserts="0" description="Unit\Src\Private\Test-ResourceDownload"> <results> <test-case description="Returns true if resource exists but no checksum was specified" name="Unit\Src\Private\Test-ResourceDownload.Returns true if resource exists but no checksum was specified" time="0.2288" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns true if resource exists and checksum is correct" name="Unit\Src\Private\Test-ResourceDownload.Returns true if resource exists and checksum is correct" time="0.026" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns false if resource does not exist" name="Unit\Src\Private\Test-ResourceDownload.Returns false if resource does not exist" time="0.0246" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns false if resource exists but checksum is incorrect" name="Unit\Src\Private\Test-ResourceDownload.Returns false if resource exists but checksum is incorrect" time="0.0262" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns false if the checksum is correct but the resource does not exist" name="Unit\Src\Private\Test-ResourceDownload.Returns false if the checksum is correct but the resource does not exist" time="0.0281" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-WindowsBuildNumber.Tests.ps1" executed="True" result="Success" success="True" time="0.2424" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Test-WindowsBuildNumber.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Private\Test-WindowsBuildNumber" executed="True" result="Success" success="True" time="0.2424" asserts="0" description="Unit\Src\Private\Test-WindowsBuildNumber"> <results> <test-case description="Returns true when build number matches the required minimum" name="Unit\Src\Private\Test-WindowsBuildNumber.Returns true when build number matches the required minimum" time="0.2179" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns true when build number mais greater than the required minimum" name="Unit\Src\Private\Test-WindowsBuildNumber.Returns true when build number mais greater than the required minimum" time="0.013" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns false when build number is less than the required minimum (#294)" name="Unit\Src\Private\Test-WindowsBuildNumber.Returns false when build number is less than the required minimum (#294)" time="0.0115" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Write-Verbose.Tests.ps1" executed="True" result="Success" success="True" time="0.2549" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Write-Verbose.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Write-Verbose" executed="True" result="Success" success="True" time="0.2549" asserts="0" description="Src\Private\Write-Verbose"> <results> <test-case description="Calls "Get-FormattedMessage" method" name="Src\Private\Write-Verbose.Calls "Get-FormattedMessage" method" time="0.2259" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Write-Verbose" method with test message" name="Src\Private\Write-Verbose.Calls "Write-Verbose" method with test message" time="0.029" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Write-Warning.Tests.ps1" executed="True" result="Success" success="True" time="0.2439" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Private\Write-Warning.Tests.ps1"> <results> <test-suite type="TestFixture" name="Src\Private\Write-Warning" executed="True" result="Success" success="True" time="0.2439" asserts="0" description="Src\Private\Write-Warning"> <results> <test-case description="Calls "Get-FormattedMessage" method" name="Src\Private\Write-Warning.Calls "Get-FormattedMessage" method" time="0.2216" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Write-Warning" method with test message" name="Src\Private\Write-Warning.Calls "Write-Warning" method with test message" time="0.0223" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Checkpoint-Lab.Tests.ps1" executed="True" result="Success" success="True" time="0.453" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Checkpoint-Lab.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Checkpoint-Lab" executed="True" result="Success" success="True" time="0.453" asserts="0" description="Unit\Src\Public\Checkpoint-Lab"> <results> <test-case description="Snapshots VMs when powered off" name="Unit\Src\Public\Checkpoint-Lab.Snapshots VMs when powered off" time="0.2688" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Snapshots VM using display name" name="Unit\Src\Public\Checkpoint-Lab.Snapshots VM using display name" time="0.034" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Errors when there is one running VM" name="Unit\Src\Public\Checkpoint-Lab.Errors when there is one running VM" time="0.0509" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Errors when there are multiple running VMs" name="Unit\Src\Public\Checkpoint-Lab.Errors when there are multiple running VMs" time="0.0447" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Snapshots VMs when there are running VMs and -Force is specified" name="Unit\Src\Public\Checkpoint-Lab.Snapshots VMs when there are running VMs and -Force is specified" time="0.0547" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabHostConfiguration.Tests.ps1" executed="True" result="Success" success="True" time="0.2956" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabHostConfiguration.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Get-LabHostConfiguration" executed="True" result="Success" success="True" time="0.2956" asserts="0" description="Unit\Src\Public\Get-LabHostConfiguration"> <results> <test-case description="Calls "Import-LabDscResource once for each host configuration item" name="Unit\Src\Public\Get-LabHostConfiguration.Calls "Import-LabDscResource once for each host configuration item" time="0.2484" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabDscResource once for each host configuration item" name="Unit\Src\Public\Get-LabHostConfiguration.Calls "Get-LabDscResource once for each host configuration item" time="0.0472" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabHostDefault.Tests.ps1" executed="True" result="Success" success="True" time="0.2285" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabHostDefault.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Get-LabHostDefault" executed="True" result="Success" success="True" time="0.2285" asserts="0" description="Unit\Src\Public\Get-LabHostDefault"> <results> <test-case description="Calls "Get-ConfigurationData"" name="Unit\Src\Public\Get-LabHostDefault.Calls "Get-ConfigurationData"" time="0.2285" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabImage.Tests.ps1" executed="True" result="Success" success="True" time="0.5661" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabImage.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Get-LabImage" executed="True" result="Success" success="True" time="0.5661" asserts="0" description="Unit\Src\Public\Get-LabImage"> <results> <test-case description="Returns null when there is no parent image when Id specified" name="Unit\Src\Public\Get-LabImage.Returns null when there is no parent image when Id specified" time="0.257" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns null when there is are no parent images" name="Unit\Src\Public\Get-LabImage.Returns null when there is are no parent images" time="0.0603" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns all available parent images when no Id is specified" name="Unit\Src\Public\Get-LabImage.Returns all available parent images when no Id is specified" time="0.0815" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a single parent image when Id specified" name="Unit\Src\Public\Get-LabImage.Returns a single parent image when Id specified" time="0.0547" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns image generation 'VHD' for VHD file" name="Unit\Src\Public\Get-LabImage.Returns image generation 'VHD' for VHD file" time="0.054" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns image generation 'VHDX' for VHDX file" name="Unit\Src\Public\Get-LabImage.Returns image generation 'VHDX' for VHDX file" time="0.0585" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabMedia.Tests.ps1" executed="True" result="Success" success="True" time="0.3249" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabMedia.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Get-LabMedia" executed="True" result="Success" success="True" time="0.3249" asserts="0" description="Unit\Src\Public\Get-LabMedia"> <results> <test-case description="Returns all built-in media when no "Id" is specified" name="Unit\Src\Public\Get-LabMedia.Returns all built-in media when no "Id" is specified" time="0.2601" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a single matching built-in media when "Id" is specified" name="Unit\Src\Public\Get-LabMedia.Returns a single matching built-in media when "Id" is specified" time="0.0358" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns null if no built-in media is found when "Id" is specified" name="Unit\Src\Public\Get-LabMedia.Returns null if no built-in media is found when "Id" is specified" time="0.0291" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabVM.Tests.ps1" executed="True" result="Success" success="True" time="0.3895" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabVM.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Get-LabVM" executed="True" result="Success" success="True" time="0.3895" asserts="0" description="Unit\Src\Public\Get-LabVM"> <results> <test-case description="Returns a "System.Management.Automation.PSCustomObject" object type" name="Unit\Src\Public\Get-LabVM.Returns a "System.Management.Automation.PSCustomObject" object type" time="0.2484" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns specific node when "Name" is specified" name="Unit\Src\Public\Get-LabVM.Returns specific node when "Name" is specified" time="0.0409" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns all nodes when "Name" is not specified" name="Unit\Src\Public\Get-LabVM.Returns all nodes when "Name" is not specified" time="0.0594" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Errors when node cannot be found" name="Unit\Src\Public\Get-LabVM.Errors when node cannot be found" time="0.0408" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabVMDefault.Tests.ps1" executed="True" result="Success" success="True" time="0.2426" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Get-LabVMDefault.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Get-LabVMDefault" executed="True" result="Success" success="True" time="0.2426" asserts="0" description="Unit\Src\Public\Get-LabVMDefault"> <results> <test-case description="Returns a "System.Management.Automation.PSCustomObject" object type" name="Unit\Src\Public\Get-LabVMDefault.Returns a "System.Management.Automation.PSCustomObject" object type" time="0.2274" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not return "BootOrder" property" name="Unit\Src\Public\Get-LabVMDefault.Does not return "BootOrder" property" time="0.0152" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Invoke-LabResourceDownload.Tests.ps1" executed="True" result="Success" success="True" time="0.9263" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Invoke-LabResourceDownload.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Invoke-LabResourceDownload" executed="True" result="Success" success="True" time="0.9263" asserts="0" description="Unit\Src\Public\Invoke-LabResourceDownload"> <results> <test-case description="Downloads all media when "MediaId" parameter is not specified" name="Unit\Src\Public\Invoke-LabResourceDownload.Downloads all media when "MediaId" parameter is not specified" time="0.3813" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads only unique media when "MediaId" parameter is not specified" name="Unit\Src\Public\Invoke-LabResourceDownload.Downloads only unique media when "MediaId" parameter is not specified" time="0.1084" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads single media when "MediaId" parameter is specified" name="Unit\Src\Public\Invoke-LabResourceDownload.Downloads single media when "MediaId" parameter is specified" time="0.0869" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads all required hotfixes" name="Unit\Src\Public\Invoke-LabResourceDownload.Downloads all required hotfixes" time="0.0592" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads all resources when "ResourceId" parameter is not specified" name="Unit\Src\Public\Invoke-LabResourceDownload.Downloads all resources when "ResourceId" parameter is not specified" time="0.0677" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads single resource when "ResourceId" parameter is specified" name="Unit\Src\Public\Invoke-LabResourceDownload.Downloads single resource when "ResourceId" parameter is specified" time="0.0361" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads a single DSC resource module" name="Unit\Src\Public\Invoke-LabResourceDownload.Downloads a single DSC resource module" time="0.0397" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads multiple DSC resource modules" name="Unit\Src\Public\Invoke-LabResourceDownload.Downloads multiple DSC resource modules" time="0.0346" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads a single PowerShell module" name="Unit\Src\Public\Invoke-LabResourceDownload.Downloads a single PowerShell module" time="0.0359" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Downloads multiple PowerShell modules" name="Unit\Src\Public\Invoke-LabResourceDownload.Downloads multiple PowerShell modules" time="0.0339" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Uses resource "Filename" property if specified" name="Unit\Src\Public\Invoke-LabResourceDownload.Uses resource "Filename" property if specified" time="0.0426" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\New-LabImage.Tests.ps1" executed="True" result="Success" success="True" time="2.7993" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\New-LabImage.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\New-LabImage" executed="True" result="Success" success="True" time="2.7993" asserts="0" description="Unit\Src\Public\New-LabImage"> <results> <test-case description="Throws if image already exists" name="Unit\Src\Public\New-LabImage.Throws if image already exists" time="0.2659" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when no "ImageName" is defined (#148)" name="Unit\Src\Public\New-LabImage.Throws when no "ImageName" is defined (#148)" time="0.0755" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Deletes parent VHDX when image creation fails" name="Unit\Src\Public\New-LabImage.Deletes parent VHDX when image creation fails" time="0.1253" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Deletes existing image if it already exists and -Force is specified" name="Unit\Src\Public\New-LabImage.Deletes existing image if it already exists and -Force is specified" time="0.0903" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-LabMediaImageDownload" to download ISO media (if not present)" name="Unit\Src\Public\New-LabImage.Calls "Invoke-LabMediaImageDownload" to download ISO media (if not present)" time="0.0877" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "NewDiskImage" with -PassThru to leave VHDX mounted" name="Unit\Src\Public\New-LabImage.Calls "NewDiskImage" with -PassThru to leave VHDX mounted" time="0.0936" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Uses "GPT" partition style for x64 media" name="Unit\Src\Public\New-LabImage.Uses "GPT" partition style for x64 media" time="0.0844" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Uses "MBR" partition style for x86 media" name="Unit\Src\Public\New-LabImage.Uses "MBR" partition style for x86 media" time="0.1203" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Uses custom partition style when specified" name="Unit\Src\Public\New-LabImage.Uses custom partition style when specified" time="0.1217" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Uses dynamc disk by default (#99)" name="Unit\Src\Public\New-LabImage.Uses dynamc disk by default (#99)" time="0.122" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Uses dynamc disk when specified (#99)" name="Unit\Src\Public\New-LabImage.Uses dynamc disk when specified (#99)" time="0.1012" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Uses fixed disk when specified (#99)" name="Unit\Src\Public\New-LabImage.Uses fixed disk when specified (#99)" time="0.0918" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates a custom disk size when specified (#99)" name="Unit\Src\Public\New-LabImage.Creates a custom disk size when specified (#99)" time="0.0942" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "New-EmptyDiskImage" when the media type is "NULL"" name="Unit\Src\Public\New-LabImage.Calls "New-EmptyDiskImage" when the media type is "NULL"" time="0.0662" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-LabImage" with the media WIM image name" name="Unit\Src\Public\New-LabImage.Calls "Expand-LabImage" with the media WIM image name" time="0.1105" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-LabImage" with the media WIM image index" name="Unit\Src\Public\New-LabImage.Calls "Expand-LabImage" with the media WIM image index" time="0.109" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-LabImage" with "WindowsOptionalFeature"" name="Unit\Src\Public\New-LabImage.Calls "Expand-LabImage" with "WindowsOptionalFeature"" time="0.1586" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-LabImage" with "WimPath"" name="Unit\Src\Public\New-LabImage.Calls "Expand-LabImage" with "WimPath"" time="0.261" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Expand-LabImage" with "SourcePath"" name="Unit\Src\Public\New-LabImage.Calls "Expand-LabImage" with "SourcePath"" time="0.0899" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Add-DiskImageHotfix" to inject hotfixes" name="Unit\Src\Public\New-LabImage.Calls "Add-DiskImageHotfix" to inject hotfixes" time="0.0951" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-DiskImageBootVolume" to configure boot volume" name="Unit\Src\Public\New-LabImage.Calls "Set-DiskImageBootVolume" to configure boot volume" time="0.0936" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Dismounts image" name="Unit\Src\Public\New-LabImage.Dismounts image" time="0.0955" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Test-LabImage" and "Get-LabImage" with "ConfigurationData" when specified (#97)" name="Unit\Src\Public\New-LabImage.Calls "Test-LabImage" and "Get-LabImage" with "ConfigurationData" when specified (#97)" time="0.1101" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when Media minimum DISM version definition is not met" name="Unit\Src\Public\New-LabImage.Throws when Media minimum DISM version definition is not met" time="0.0385" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not throw when Media minimum DISM version definition is met (#247)" name="Unit\Src\Public\New-LabImage.Does not throw when Media minimum DISM version definition is met (#247)" time="0.0973" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\New-LabVM.Tests.ps1" executed="True" result="Success" success="True" time="0.4453" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\New-LabVM.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\New-LabVM" executed="True" result="Success" success="True" time="0.4453" asserts="0" description="Unit\Src\Public\New-LabVM"> <results> <test-case description="Creates a new virtual machine with a snapshot by default" name="Unit\Src\Public\New-LabVM.Creates a new virtual machine with a snapshot by default" time="0.3356" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates a new virtual machine without a snapshot when "NoSnapshot" is specified" name="Unit\Src\Public\New-LabVM.Creates a new virtual machine without a snapshot when "NoSnapshot" is specified" time="0.1097" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Register-LabMedia.Tests.ps1" executed="True" result="Success" success="True" time="0.4631" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Register-LabMedia.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Register-LabMedia" executed="True" result="Success" success="True" time="0.4631" asserts="0" description="Unit\Src\Public\Register-LabMedia"> <results> <test-case description="Throws when custom media type is "ISO" and OperatingSystem is "Linux"" name="Unit\Src\Public\Register-LabMedia.Throws when custom media type is "ISO" and OperatingSystem is "Linux"" time="0.2854" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when custom media type is "WIM" and OperatingSystem is "Linux"" name="Unit\Src\Public\Register-LabMedia.Throws when custom media type is "WIM" and OperatingSystem is "Linux"" time="0.0151" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when custom media type is "ISO" and "ImageName" is not specified" name="Unit\Src\Public\Register-LabMedia.Throws when custom media type is "ISO" and "ImageName" is not specified" time="0.022" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when custom media type is "WIM" and "ImageName" is not specified" name="Unit\Src\Public\Register-LabMedia.Throws when custom media type is "WIM" and "ImageName" is not specified" time="0.0245" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when custom media already exists and "Force" is not specified" name="Unit\Src\Public\Register-LabMedia.Throws when custom media already exists and "Force" is not specified" time="0.0301" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not throw when custom media type is "VHD" and "ImageName" is not specified" name="Unit\Src\Public\Register-LabMedia.Does not throw when custom media type is "VHD" and "ImageName" is not specified" time="0.046" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not throw when custom media already exists and "Force" is specified" name="Unit\Src\Public\Register-LabMedia.Does not throw when custom media already exists and "Force" is specified" time="0.0401" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Remove-LabConfiguration.Tests.ps1" executed="True" result="Success" success="True" time="0.3187" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Remove-LabConfiguration.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Remove-LabConfiguration" executed="True" result="Success" success="True" time="0.3187" asserts="0" description="Unit\Src\Public\Remove-LabConfiguration"> <results> <test-case description="Calls "Remove-LabVirtualMachine" for each node" name="Unit\Src\Public\Remove-LabConfiguration.Calls "Remove-LabVirtualMachine" for each node" time="0.3187" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Reset-Lab.Tests.ps1" executed="True" result="Success" success="True" time="0.2361" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Reset-Lab.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Reset-Lab" executed="True" result="Success" success="True" time="0.2361" asserts="0" description="Unit\Src\Public\Reset-Lab"> <results> <test-case description="Calls "Restore-Lab" with -Force switch" name="Unit\Src\Public\Reset-Lab.Calls "Restore-Lab" with -Force switch" time="0.2361" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Reset-LabVM.Tests.ps1" executed="True" result="Success" success="True" time="0.4381" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Reset-LabVM.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Reset-LabVM" executed="True" result="Success" success="True" time="0.4381" asserts="0" description="Unit\Src\Public\Reset-LabVM"> <results> <test-case description="Removes existing virtual machine" name="Unit\Src\Public\Reset-LabVM.Removes existing virtual machine" time="0.2848" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates a new virtual machine" name="Unit\Src\Public\Reset-LabVM.Creates a new virtual machine" time="0.0692" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates a new virtual machine without a snapshot when "NoSnapshot" is specified" name="Unit\Src\Public\Reset-LabVM.Creates a new virtual machine without a snapshot when "NoSnapshot" is specified" time="0.0842" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Reset-LabVMDefault.Tests.ps1" executed="True" result="Success" success="True" time="0.2396" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Reset-LabVMDefault.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Reset-LabVMDefault" executed="True" result="Success" success="True" time="0.2396" asserts="0" description="Unit\Src\Public\Reset-LabVMDefault"> <results> <test-case description="Calls "Remove-ConfigurationData" method" name="Unit\Src\Public\Reset-LabVMDefault.Calls "Remove-ConfigurationData" method" time="0.2396" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Restore-Lab.Tests.ps1" executed="True" result="Success" success="True" time="0.6281" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Restore-Lab.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Restore-Lab" executed="True" result="Success" success="True" time="0.6281" asserts="0" description="Unit\Src\Public\Restore-Lab"> <results> <test-case description="Restores specified snapshot when VMs are powered off" name="Unit\Src\Public\Restore-Lab.Restores specified snapshot when VMs are powered off" time="0.3703" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Restores VM snapshot using display name" name="Unit\Src\Public\Restore-Lab.Restores VM snapshot using display name" time="0.0572" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Errors when there is a running VM" name="Unit\Src\Public\Restore-Lab.Errors when there is a running VM" time="0.0737" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Restores specified snapshot when there are running VMs and -Force is specified" name="Unit\Src\Public\Restore-Lab.Restores specified snapshot when there are running VMs and -Force is specified" time="0.1268" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Set-LabHostDefault.Tests.ps1" executed="True" result="Success" success="True" time="0.6966" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Set-LabHostDefault.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Set-LabHostDefault" executed="True" result="Success" success="True" time="0.6966" asserts="0" description="Unit\Src\Public\Set-LabHostDefault"> <results> <test-case description="Resolves path containing an environment variable" name="Unit\Src\Public\Set-LabHostDefault.Resolves path containing an environment variable" time="0.2523" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls 'Set-LabDefaults' with passed 'ConfigurationPath' parameter" name="Unit\Src\Public\Set-LabHostDefault.Calls 'Set-LabDefaults' with passed 'ConfigurationPath' parameter" time="0.0533" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls 'Set-LabDefaults' with passed 'DifferencingVhdPath' parameter" name="Unit\Src\Public\Set-LabHostDefault.Calls 'Set-LabDefaults' with passed 'DifferencingVhdPath' parameter" time="0.0516" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls 'Set-LabDefaults' with passed 'HotfixPath' parameter" name="Unit\Src\Public\Set-LabHostDefault.Calls 'Set-LabDefaults' with passed 'HotfixPath' parameter" time="0.0618" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls 'Set-LabDefaults' with passed 'IsoPath' parameter" name="Unit\Src\Public\Set-LabHostDefault.Calls 'Set-LabDefaults' with passed 'IsoPath' parameter" time="0.052" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls 'Set-LabDefaults' with passed 'ParentVhdPath' parameter" name="Unit\Src\Public\Set-LabHostDefault.Calls 'Set-LabDefaults' with passed 'ParentVhdPath' parameter" time="0.0525" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls 'Set-LabDefaults' with passed 'ResourcePath' parameter" name="Unit\Src\Public\Set-LabHostDefault.Calls 'Set-LabDefaults' with passed 'ResourcePath' parameter" time="0.0541" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls 'Set-LabDefaults' with passed 'ModuleCachePath' parameter" name="Unit\Src\Public\Set-LabHostDefault.Calls 'Set-LabDefaults' with passed 'ModuleCachePath' parameter" time="0.0511" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-LabDefaults" with passed "ResourceShareName" parameter" name="Unit\Src\Public\Set-LabHostDefault.Calls "Set-LabDefaults" with passed "ResourceShareName" parameter" time="0.0373" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws when passed an invalid path" name="Unit\Src\Public\Set-LabHostDefault.Throws when passed an invalid path" time="0.0306" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Set-LabVMDefault.Tests.ps1" executed="True" result="Success" success="True" time="1.242" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Set-LabVMDefault.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Set-LabVMDefault" executed="True" result="Success" success="True" time="1.242" asserts="0" description="Unit\Src\Public\Set-LabVMDefault"> <results> <test-case description="Does not return "BootOrder" property" name="Unit\Src\Public\Set-LabVMDefault.Does not return "BootOrder" property" time="0.2679" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "StartupMemory" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "StartupMemory" value" time="0.0379" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "MinimumMemory" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "MinimumMemory" value" time="0.0339" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "MaximumMemory" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "MaximumMemory" value" time="0.0323" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "ProcessorCount" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "ProcessorCount" value" time="0.0341" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "Media" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "Media" value" time="0.0506" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "SwitchName" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "SwitchName" value" time="0.0363" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "Timezone" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "Timezone" value" time="0.038" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "InputLocale" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "InputLocale" value" time="0.0433" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "InputLocale" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "InputLocale" value" time="0.0315" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "SystemLocale" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "SystemLocale" value" time="0.0393" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "UILanguage" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "UILanguage" value" time="0.0259" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "UserLocale" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "UserLocale" value" time="0.0305" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "RegisteredOwner" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "RegisteredOwner" value" time="0.0304" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "RegisteredOrganization" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "RegisteredOrganization" value" time="0.0291" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "BootDelay" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "BootDelay" value" time="0.0419" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "CustomBootstrapOrder" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "CustomBootstrapOrder" value" time="0.0303" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "GuestIntegrationServices" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "GuestIntegrationServices" value" time="0.0297" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "MaxEnvelopeSizeKb" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "MaxEnvelopeSizeKb" value" time="0.0316" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "ClientCertificatePath" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "ClientCertificatePath" value" time="0.0369" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets "RootCertificatePath" value" name="Unit\Src\Public\Set-LabVMDefault.Sets "RootCertificatePath" value" time="0.0326" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if "Timezone" cannot be resolved" name="Unit\Src\Public\Set-LabVMDefault.Throws if "Timezone" cannot be resolved" time="0.0288" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if "ClientCertificatePath" file cannot be found" name="Unit\Src\Public\Set-LabVMDefault.Throws if "ClientCertificatePath" file cannot be found" time="0.024" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if "RootCertificatePath" file cannot be found" name="Unit\Src\Public\Set-LabVMDefault.Throws if "RootCertificatePath" file cannot be found" time="0.0283" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if "StartupMemory" is less than "MinimumMemory"" name="Unit\Src\Public\Set-LabVMDefault.Throws if "StartupMemory" is less than "MinimumMemory"" time="0.0186" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if "StartupMemory" is greater than "MaximumMemory"" name="Unit\Src\Public\Set-LabVMDefault.Throws if "StartupMemory" is greater than "MaximumMemory"" time="0.0342" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if "Media" cannot be resolved" name="Unit\Src\Public\Set-LabVMDefault.Throws if "Media" cannot be resolved" time="0.0558" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Set-ConfigurationData" to write data to disk" name="Unit\Src\Public\Set-LabVMDefault.Calls "Set-ConfigurationData" to write data to disk" time="0.0883" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Start-Lab.Tests.ps1" executed="True" result="Success" success="True" time="0.6138" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Start-Lab.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Start-Lab" executed="True" result="Success" success="True" time="0.6138" asserts="0" description="Unit\Src\Public\Start-Lab"> <results> <test-case description="Starts all VMs with matching boot order" name="Unit\Src\Public\Start-Lab.Starts all VMs with matching boot order" time="0.2903" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Starts all VMs with differing boot orders individually" name="Unit\Src\Public\Start-Lab.Starts all VMs with differing boot orders individually" time="0.1205" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Starts VM using display name" name="Unit\Src\Public\Start-Lab.Starts VM using display name" time="0.045" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Starts VMs in boot order" name="Unit\Src\Public\Start-Lab.Starts VMs in boot order" time="0.1123" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not call "Start-Sleep" if a zero boot delay is specified" name="Unit\Src\Public\Start-Lab.Does not call "Start-Sleep" if a zero boot delay is specified" time="0.0458" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Start-LabConfiguration.Tests.ps1" executed="True" result="Success" success="True" time="0.4707" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Start-LabConfiguration.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Start-LabConfiguration" executed="True" result="Success" success="True" time="0.4707" asserts="0" description="Unit\Src\Public\Start-LabConfiguration"> <results> <test-case description="Throws is "Test-LabHostConfiguration" fails" name="Unit\Src\Public\Start-LabConfiguration.Throws is "Test-LabHostConfiguration" fails" time="0.2421" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws if path is invalid" name="Unit\Src\Public\Start-LabConfiguration.Throws if path is invalid" time="0.043" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "New-LabVirtualMachine" if node is not configured" name="Unit\Src\Public\Start-LabConfiguration.Calls "New-LabVirtualMachine" if node is not configured" time="0.0622" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not call "New-LabVirtualMachine" if node is configured" name="Unit\Src\Public\Start-LabConfiguration.Does not call "New-LabVirtualMachine" if node is configured" time="0.0582" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "New-LabVirtualMachine" if node is configured but -Force is specified" name="Unit\Src\Public\Start-LabConfiguration.Calls "New-LabVirtualMachine" if node is configured but -Force is specified" time="0.0652" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Start-LabHostConfiguration.Tests.ps1" executed="True" result="Success" success="True" time="0.4067" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Start-LabHostConfiguration.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Start-LabHostConfiguration" executed="True" result="Success" success="True" time="0.4067" asserts="0" description="Unit\Src\Public\Start-LabHostConfiguration"> <results> <test-case description="Does not attempt to create an empty path" name="Unit\Src\Public\Start-LabHostConfiguration.Does not attempt to create an empty path" time="0.2551" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "New-Directory" for each path" name="Unit\Src\Public\Start-LabHostConfiguration.Calls "New-Directory" for each path" time="0.0372" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Invoke-LabDscResource" for each host configuration item" name="Unit\Src\Public\Start-LabHostConfiguration.Calls "Invoke-LabDscResource" for each host configuration item" time="0.0771" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not call "Invoke-LabDscResource" on "xPendingReboot" when "IgnorePendingReboot" is specified (#278)" name="Unit\Src\Public\Start-LabHostConfiguration.Does not call "Invoke-LabDscResource" on "xPendingReboot" when "IgnorePendingReboot" is specified (#278)" time="0.0373" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Stop-Lab.Tests.ps1" executed="True" result="Success" success="True" time="0.6796" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Stop-Lab.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Stop-Lab" executed="True" result="Success" success="True" time="0.6796" asserts="0" description="Unit\Src\Public\Stop-Lab"> <results> <test-case description="Stops all VMs with matching boot order" name="Unit\Src\Public\Stop-Lab.Stops all VMs with matching boot order" time="0.2957" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Stops all VMs with differing boot orders individually" name="Unit\Src\Public\Stop-Lab.Stops all VMs with differing boot orders individually" time="0.1167" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Stops VM using display name" name="Unit\Src\Public\Stop-Lab.Stops VM using display name" time="0.0514" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Stops VMs in boot order" name="Unit\Src\Public\Stop-Lab.Stops VMs in boot order" time="0.117" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Stop-VM" with "Force"" name="Unit\Src\Public\Stop-Lab.Calls "Stop-VM" with "Force"" time="0.0472" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not call "Start-Sleep" if a zero boot delay is specified" name="Unit\Src\Public\Stop-Lab.Does not call "Start-Sleep" if a zero boot delay is specified" time="0.0517" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabConfiguration.Tests.ps1" executed="True" result="Success" success="True" time="0.3247" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabConfiguration.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Test-LabConfiguration" executed="True" result="Success" success="True" time="0.3247" asserts="0" description="Unit\Src\Public\Test-LabConfiguration"> <results> <test-case description="Calls "Test-LabVM" for each node" name="Unit\Src\Public\Test-LabConfiguration.Calls "Test-LabVM" for each node" time="0.3247" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabHostConfiguration.Tests.ps1" executed="True" result="Success" success="True" time="0.6485" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabHostConfiguration.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Test-LabHostConfiguration" executed="True" result="Success" success="True" time="0.6485" asserts="0" description="Unit\Src\Public\Test-LabHostConfiguration"> <results> <test-case description="Passes when target paths exist" name="Unit\Src\Public\Test-LabHostConfiguration.Passes when target paths exist" time="0.3768" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when a target path does not exist" name="Unit\Src\Public\Test-LabHostConfiguration.Fails when a target path does not exist" time="0.0247" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes when host configuration is correct" name="Unit\Src\Public\Test-LabHostConfiguration.Passes when host configuration is correct" time="0.0703" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when host configuration is incorrect" name="Unit\Src\Public\Test-LabHostConfiguration.Fails when host configuration is incorrect" time="0.0593" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when host configuration has a pending reboot" name="Unit\Src\Public\Test-LabHostConfiguration.Fails when host configuration has a pending reboot" time="0.0591" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes when host configuration has a pending reboot but -IgnorePendingReboot is specified" name="Unit\Src\Public\Test-LabHostConfiguration.Passes when host configuration has a pending reboot but -IgnorePendingReboot is specified" time="0.0584" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabImage.Tests.ps1" executed="True" result="Success" success="True" time="0.2959" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabImage.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Test-LabImage" executed="True" result="Success" success="True" time="0.2959" asserts="0" description="Unit\Src\Public\Test-LabImage"> <results> <test-case description="Passes when parent image is found" name="Unit\Src\Public\Test-LabImage.Passes when parent image is found" time="0.2463" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when parent image is not found" name="Unit\Src\Public\Test-LabImage.Fails when parent image is not found" time="0.0223" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" name="Unit\Src\Public\Test-LabImage.Calls "Get-LabImage" with "ConfigurationData" when specified (#97)" time="0.0274" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabMedia.Tests.ps1" executed="True" result="Success" success="True" time="0.3488" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabMedia.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Test-LabMedia" executed="True" result="Success" success="True" time="0.3488" asserts="0" description="Unit\Src\Public\Test-LabMedia"> <results> <test-case description="Passes when media ISO has been downloaded" name="Unit\Src\Public\Test-LabMedia.Passes when media ISO has been downloaded" time="0.2842" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when media ISO has not been downloaded" name="Unit\Src\Public\Test-LabMedia.Fails when media ISO has not been downloaded" time="0.0379" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when media Id is not found" name="Unit\Src\Public\Test-LabMedia.Fails when media Id is not found" time="0.0266" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabResource.Tests.ps1" executed="True" result="Success" success="True" time="0.4755" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabResource.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Test-LabResource" executed="True" result="Success" success="True" time="0.4755" asserts="0" description="Unit\Src\Public\Test-LabResource"> <results> <test-case description="Passes when no resources are defined in the configuration data" name="Unit\Src\Public\Test-LabResource.Passes when no resources are defined in the configuration data" time="0.2372" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes when all defined resources are present and "Id" parameter is not specified" name="Unit\Src\Public\Test-LabResource.Passes when all defined resources are present and "Id" parameter is not specified" time="0.0674" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes when defined resource is present and "Id" parameter is specified" name="Unit\Src\Public\Test-LabResource.Passes when defined resource is present and "Id" parameter is specified" time="0.0285" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when a resource is missing and "Id" parameter is not specified" name="Unit\Src\Public\Test-LabResource.Fails when a resource is missing and "Id" parameter is not specified" time="0.0376" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when a resource is missing and "Id" parameter is specified" name="Unit\Src\Public\Test-LabResource.Fails when a resource is missing and "Id" parameter is specified" time="0.0325" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Uses resource "Filename" property if specified" name="Unit\Src\Public\Test-LabResource.Uses resource "Filename" property if specified" time="0.0373" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Test-ResourceDownload" with "Checksum" parameter when defined" name="Unit\Src\Public\Test-LabResource.Calls "Test-ResourceDownload" with "Checksum" parameter when defined" time="0.0349" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabVM.Tests.ps1" executed="True" result="Success" success="True" time="0.6988" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Test-LabVM.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Test-LabVM" executed="True" result="Success" success="True" time="0.6988" asserts="0" description="Unit\Src\Public\Test-LabVM"> <results> <test-case description="Returns a "System.Boolean" object type" name="Unit\Src\Public\Test-LabVM.Returns a "System.Boolean" object type" time="0.2862" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Returns a result for each VM when "Name" is not specified" name="Unit\Src\Public\Test-LabVM.Returns a result for each VM when "Name" is not specified" time="0.0922" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Passes when VM is configured correctly" name="Unit\Src\Public\Test-LabVM.Passes when VM is configured correctly" time="0.0503" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when image is invalid" name="Unit\Src\Public\Test-LabVM.Fails when image is invalid" time="0.0389" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when switch configuration is incorrect" name="Unit\Src\Public\Test-LabVM.Fails when switch configuration is incorrect" time="0.0553" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when VM disk configuration is invalid" name="Unit\Src\Public\Test-LabVM.Fails when VM disk configuration is invalid" time="0.048" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Fails when VM configuration is incorrect" name="Unit\Src\Public\Test-LabVM.Fails when VM configuration is incorrect" time="0.0618" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Calls "Test-LabImage" and "Test-LabVMDisk" with "ConfigurationData" (#97)" name="Unit\Src\Public\Test-LabVM.Calls "Test-LabImage" and "Test-LabVMDisk" with "ConfigurationData" (#97)" time="0.066" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Unregister-LabMedia.Tests.ps1" executed="True" result="Success" success="True" time="0.2797" asserts="0" description="C:\Users\Iain\Dropbox\PowerShell\Modules\Lability\Tests\Unit\Src\Public\Unregister-LabMedia.Tests.ps1"> <results> <test-suite type="TestFixture" name="Unit\Src\Public\Unregister-LabMedia" executed="True" result="Success" success="True" time="0.2797" asserts="0" description="Unit\Src\Public\Unregister-LabMedia"> <results> <test-case description="Removes existing custom media entry when 'Id' does exist" name="Unit\Src\Public\Unregister-LabMedia.Removes existing custom media entry when 'Id' does exist" time="0.2501" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not remove any entries when custom media 'Id' doesn't exist" name="Unit\Src\Public\Unregister-LabMedia.Does not remove any entries when custom media 'Id' doesn't exist" time="0.0296" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> </results> </test-suite> </test-results> |