Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvs committed Mar 22, 2024
1 parent c24ef89 commit 779b227
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 50 deletions.
12 changes: 6 additions & 6 deletions tests/DiskSmartInfo.history.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ Describe "History" {
$diskSmartInfo[0].SmartData[0].psobject.properties['IDHex'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].IDHex | Should -BeOfType 'System.String'

$diskSmartInfo[0].SmartData[0].psobject.properties['AttributeName'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].AttributeName | Should -BeOfType 'System.String'
$diskSmartInfo[0].SmartData[0].psobject.properties['Name'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].Name | Should -BeOfType 'System.String'

$diskSmartInfo[0].SmartData[0].psobject.properties['Threshold'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].Threshold | Should -BeOfType 'System.Byte'
Expand Down Expand Up @@ -236,8 +236,8 @@ Describe "History" {
$diskSmartInfo[0].SmartData[0].psobject.properties['IDHex'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].IDHex | Should -BeOfType 'System.String'

$diskSmartInfo[0].SmartData[0].psobject.properties['AttributeName'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].AttributeName | Should -BeOfType 'System.String'
$diskSmartInfo[0].SmartData[0].psobject.properties['Name'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].Name | Should -BeOfType 'System.String'

$diskSmartInfo[0].SmartData[0].psobject.properties['Threshold'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].Threshold | Should -BeOfType 'System.Byte'
Expand Down Expand Up @@ -386,8 +386,8 @@ Describe "History" {
$diskSmartInfo[0].SmartData[0].psobject.properties['IDHex'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].IDHex | Should -BeOfType 'System.String'

$diskSmartInfo[0].SmartData[0].psobject.properties['AttributeName'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].AttributeName | Should -BeOfType 'System.String'
$diskSmartInfo[0].SmartData[0].psobject.properties['Name'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].Name | Should -BeOfType 'System.String'

$diskSmartInfo[0].SmartData[0].psobject.properties['Threshold'] | Should -Not -BeNullOrEmpty
$diskSmartInfo[0].SmartData[0].Threshold | Should -BeOfType 'System.Byte'
Expand Down
16 changes: 8 additions & 8 deletions tests/DiskSmartInfo.remoting.mocked.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Describe "DiskSmartInfo remoting mocked tests" {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -134,7 +134,7 @@ Describe "DiskSmartInfo remoting mocked tests" {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -185,7 +185,7 @@ Describe "DiskSmartInfo remoting mocked tests" {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -236,7 +236,7 @@ Describe "DiskSmartInfo remoting mocked tests" {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -287,7 +287,7 @@ Describe "DiskSmartInfo remoting mocked tests" {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -335,7 +335,7 @@ Describe "DiskSmartInfo remoting mocked tests" {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -383,7 +383,7 @@ Describe "DiskSmartInfo remoting mocked tests" {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[1].SmartData[0].ID | Should -Be 1
$diskSmartInfo[1].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[1].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[1].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[1].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[1].SmartData[2].Value | Should -Be 71
$diskSmartInfo[1].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -431,7 +431,7 @@ Describe "DiskSmartInfo remoting mocked tests" {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down
16 changes: 8 additions & 8 deletions tests/DiskSmartInfo.remoting.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Describe "DiskSmartInfo remoting tests" -Skip:$skipRemoting {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -126,7 +126,7 @@ Describe "DiskSmartInfo remoting tests" -Skip:$skipRemoting {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[1].SmartData[0].ID | Should -Be 1
$diskSmartInfo[1].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[1].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[1].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[1].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[1].SmartData[2].Value | Should -Be 71
$diskSmartInfo[1].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -170,7 +170,7 @@ Describe "DiskSmartInfo remoting tests" -Skip:$skipRemoting {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -214,7 +214,7 @@ Describe "DiskSmartInfo remoting tests" -Skip:$skipRemoting {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[1].SmartData[0].ID | Should -Be 1
$diskSmartInfo[1].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[1].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[1].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[1].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[1].SmartData[2].Value | Should -Be 71
$diskSmartInfo[1].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -258,7 +258,7 @@ Describe "DiskSmartInfo remoting tests" -Skip:$skipRemoting {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -307,7 +307,7 @@ Describe "DiskSmartInfo remoting tests" -Skip:$skipRemoting {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -356,7 +356,7 @@ Describe "DiskSmartInfo remoting tests" -Skip:$skipRemoting {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[1].SmartData[0].ID | Should -Be 1
$diskSmartInfo[1].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[1].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[1].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[1].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[1].SmartData[2].Value | Should -Be 71
$diskSmartInfo[1].SmartData[2].Worst | Should -Be 69
Expand Down Expand Up @@ -405,7 +405,7 @@ Describe "DiskSmartInfo remoting tests" -Skip:$skipRemoting {
It "Has correct DiskSmartAttribute objects" {
$diskSmartInfo[0].SmartData[0].ID | Should -Be 1
$diskSmartInfo[0].SmartData[12].IDHex | Should -BeExactly 'C0'
$diskSmartInfo[0].SmartData[2].AttributeName | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Name | Should -BeExactly 'Spin-Up Time'
$diskSmartInfo[0].SmartData[2].Threshold | Should -Be 25
$diskSmartInfo[0].SmartData[2].Value | Should -Be 71
$diskSmartInfo[0].SmartData[2].Worst | Should -Be 69
Expand Down
Loading

0 comments on commit 779b227

Please sign in to comment.