Skip to content

Commit

Permalink
Minor changes to Case in Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueHO committed Dec 25, 2017
1 parent ecb3c68 commit 5c3f42c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
8 changes: 4 additions & 4 deletions Tests/Integration/MSFT_xScheduledTask.Integration.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ try
}

It 'Should return a compliant state after being applied' {
(Test-DscConfiguration -ReferenceConfiguration $configMof -Verbose).InDesiredState | Should -be $true
(Test-DscConfiguration -ReferenceConfiguration $configMof -Verbose).InDesiredState | Should -Be $true
}
}

Expand Down Expand Up @@ -103,7 +103,7 @@ try
}

It 'Should return a compliant state after being applied' {
(Test-DscConfiguration -ReferenceConfiguration $configMof -Verbose).InDesiredState | Should -be $true
(Test-DscConfiguration -ReferenceConfiguration $configMof -Verbose).InDesiredState | Should -Be $true
}
}

Expand Down Expand Up @@ -132,7 +132,7 @@ try
}

It 'Should return a compliant state after being applied' {
(Test-DscConfiguration -ReferenceConfiguration $configMof -Verbose).InDesiredState | Should -be $true
(Test-DscConfiguration -ReferenceConfiguration $configMof -Verbose).InDesiredState | Should -Be $true
}
}
}
Expand Down Expand Up @@ -168,7 +168,7 @@ try
}

It 'Should return a compliant state after being applied' {
(Test-DscConfiguration -ReferenceConfiguration $configMof -Verbose).InDesiredState | Should -be $true
(Test-DscConfiguration -ReferenceConfiguration $configMof -Verbose).InDesiredState | Should -Be $true
}

It 'Should have set the resource and all the parameters should match' {
Expand Down
38 changes: 19 additions & 19 deletions Tests/Integration/MSFT_xVirtualMemory.Integration.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$script:DSCModuleName = 'xComputerManagement'
$script:DSCResourceName = 'MSFT_xVirtualMemory'
$script:DSCModuleName = 'xComputerManagement'
$script:DSCResourceName = 'MSFT_xVirtualMemory'

#region HEADER
# Integration Test Template Version: 1.1.1
Expand All @@ -26,92 +26,92 @@ try
. $configFile

Describe "$($script:DSCResourceName)_Integration" {

Context "Set page file to automatically managed" {
$CurrentConfig = "setToAuto"
$ConfigDir = (Join-Path -Path $TestDrive -ChildPath $CurrentConfig)
$ConfigMof = (Join-Path -Path $ConfigDir -ChildPath "localhost.mof")

It "should compile a MOF file without error" {
{
. $CurrentConfig -OutputPath $ConfigDir
} | Should -Not -Throw
}

It "should apply the MOF correctly" {
{
Start-DscConfiguration -Path $ConfigDir -Wait -Verbose -Force
} | Should -Not -Throw
}

It "should return a compliant state after being applied" {
(Test-DscConfiguration -ReferenceConfiguration $ConfigMof -Verbose).InDesiredState | Should -be $true
(Test-DscConfiguration -ReferenceConfiguration $ConfigMof -Verbose).InDesiredState | Should -Be $true
}
}

Context "Set page file to custom size" {
$CurrentConfig = "setToCustom"
$ConfigDir = (Join-Path -Path $TestDrive -ChildPath $CurrentConfig)
$ConfigMof = (Join-Path -Path $ConfigDir -ChildPath "localhost.mof")

It "should compile a MOF file without error" {
{
. $CurrentConfig -OutputPath $ConfigDir
} | Should -Not -Throw
}

It "should apply the MOF correctly" {
{
Start-DscConfiguration -Path $ConfigDir -Wait -Verbose -Force
} | Should -Not -Throw
}

It "should return a compliant state after being applied" {
(Test-DscConfiguration -ReferenceConfiguration $ConfigMof -Verbose).InDesiredState | Should -be $true
(Test-DscConfiguration -ReferenceConfiguration $ConfigMof -Verbose).InDesiredState | Should -Be $true
}
}

Context "Set page file to system managed" {
$CurrentConfig = "setToSystemManaged"
$ConfigDir = (Join-Path -Path $TestDrive -ChildPath $CurrentConfig)
$ConfigMof = (Join-Path -Path $ConfigDir -ChildPath "localhost.mof")

It "should compile a MOF file without error" {
{
. $CurrentConfig -OutputPath $ConfigDir
} | Should -Not -Throw
}

It "should apply the MOF correctly" {
{
Start-DscConfiguration -Path $ConfigDir -Wait -Verbose -Force
} | Should -Not -Throw
}

It "should return a compliant state after being applied" {
(Test-DscConfiguration -ReferenceConfiguration $ConfigMof -Verbose).InDesiredState | Should -be $true
(Test-DscConfiguration -ReferenceConfiguration $ConfigMof -Verbose).InDesiredState | Should -Be $true
}
}

Context "Set page file to none" {
$CurrentConfig = "setToNone"
$ConfigDir = (Join-Path -Path $TestDrive -ChildPath $CurrentConfig)
$ConfigMof = (Join-Path -Path $ConfigDir -ChildPath "localhost.mof")

It "should compile a MOF file without error" {
{
. $CurrentConfig -OutputPath $ConfigDir
} | Should -Not -Throw
}

It "should apply the MOF correctly" {
{
Start-DscConfiguration -Path $ConfigDir -Wait -Verbose -Force
} | Should -Not -Throw
}

It "should return a compliant state after being applied" {
(Test-DscConfiguration -ReferenceConfiguration $ConfigMof -Verbose).InDesiredState | Should -be $true
(Test-DscConfiguration -ReferenceConfiguration $ConfigMof -Verbose).InDesiredState | Should -Be $true
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/MSFT_xOfflineDomainJoin.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ try
}

It 'Should return false' {
Test-TargetResource @TestOfflineDomainJoin | should -be $false
Test-TargetResource @TestOfflineDomainJoin | Should -Be $false
}

It 'Should do call all the mocks' {
Expand All @@ -112,7 +112,7 @@ try
}

It 'Should return false' {
Test-TargetResource @TestOfflineDomainJoin | should -be $true
Test-TargetResource @TestOfflineDomainJoin | Should -Be $true
}

It 'Should do call all the mocks' {
Expand Down

0 comments on commit 5c3f42c

Please sign in to comment.