Skip to content

Commit

Permalink
Removed unneccesary empty MockWith parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueHO committed Nov 16, 2019
1 parent dd07c7c commit 60264ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Unit/MSFT_DefaultGatewayAddress.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ try
}

Context 'When interface has no default gateway set' {
Mock -CommandName Get-NetRoute -MockWith { }
Mock -CommandName Get-NetRoute

It 'Should return no default gateway' {
$getTargetResourceParameters = @{
Expand Down Expand Up @@ -151,7 +151,7 @@ try
}

Context 'Checking return with default gateway but none are currently set' {
Mock -CommandName Get-NetRoute -MockWith { }
Mock -CommandName Get-NetRoute

It 'Should return false' {
$testTargetResourceParameters = @{
Expand All @@ -165,7 +165,7 @@ try
}

Context 'Checking return with no gateway and none are currently set' {
Mock -CommandName Get-NetRoute -MockWith { }
Mock -CommandName Get-NetRoute

It 'Should return true' {
$testTargetResourceParameters = @{
Expand Down Expand Up @@ -314,7 +314,7 @@ try
}

Context 'When interface has no default gateway set' {
Mock -CommandName Get-NetRoute -MockWith { }
Mock -CommandName Get-NetRoute

It 'Should return no default gateway' {
$GetNetDefaultRouteParameters = @{
Expand Down

0 comments on commit 60264ab

Please sign in to comment.