Skip to content

Commit 309cfbb

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
remove unused implement in NoExport test class
1 parent 28b8083 commit 309cfbb

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

powershell-adapter/Tests/TestClassResource/0.0.1/TestClassResource.psm1

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,11 @@ class NoExport: BaseTestClass
9292

9393
[bool] Test()
9494
{
95-
if (($this.Name -eq "TestClassResource1") -and ($this.Prop1 -eq "ValueForProp1"))
96-
{
97-
return $true
98-
}
99-
else
100-
{
101-
return $false
102-
}
95+
return $true
10396
}
10497

10598
[NoExport] Get()
10699
{
107-
if ($this.Name -eq "TestClassResource1")
108-
{
109-
$this.Prop1 = "ValueForProp1"
110-
}
111-
else
112-
{
113-
$this.Prop1 = $env:DSC_CONFIG_ROOT
114-
}
115-
$this.EnumProp = ([EnumPropEnumeration]::Expected).ToString()
116100
return $this
117101
}
118102
}

0 commit comments

Comments
 (0)