-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMicrosoft.PowerShell_profile.Tests.ps1
More file actions
718 lines (629 loc) · 19.7 KB
/
Microsoft.PowerShell_profile.Tests.ps1
File metadata and controls
718 lines (629 loc) · 19.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
BeforeAll {
Import-Module -Name 'C:\Users\Nick\Dropbox\PC (2)\Documents\GitHub\UserStyles\Microsoft.PowerShell_profile.ps1'
}
#region Tests for ghcs function
Describe "ghcs" {
It "Should define the ghcs function" {
Get-Command ghcs -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for ghce function
Describe "ghce" {
It "Should define the ghce function" {
Get-Command ghce -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Remove-Images function
Describe "Remove-Images" {
It "Should define the Remove-Images function" {
Get-Command Remove-Images -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Clear-Temp function
Describe "Clear-Temp" {
It "Should define the Clear-Temp function" {
Get-Command Clear-Temp -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-LastRun function
Describe "Get-LastRun" {
It "Should define the Get-LastRun function" {
Get-Command Get-LastRun -CommandType Function | Should -Not -BeNullOrEmpty
}
}
Describe "Get-IPAddress" {
It "Should define the Get-IPAddress function" {
Get-Command Get-IPAddress -CommandType Function | Should -Not -BeNullOrEmpty
}
It "Should return an IP Address" {
(Get-IPAddress) -match '^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$' | Should -Be $true
}
}
#endregion
#region Tests for Get-DiskUsage function
#endregion
#region Tests for Get-DiskUsage function
Describe "Get-DiskUsage" {
It "Should define the Get-DiskUsage function" {
Get-Command Get-DiskUsage -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Restart-Service function
Describe "Restart-Service" {
It "Should define the Restart-Service function" {
Get-Command Restart-Service -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Show-FileSize function
Describe "Show-FileSize" {
It "Should define the Show-FileSize function" {
Get-Command Show-FileSize -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Convert-Size function
Describe "Convert-Size" {
It "Should define the Convert-Size function" {
Get-Command Convert-Size -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Find-ProcessByName function
Describe "Find-ProcessByName" {
It "Should define the Find-ProcessByName function" {
Get-Command Find-ProcessByName -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Start-Task function
Describe "Start-Task" {
It "Should define the Start-Task function" {
Get-Command Start-Task -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-ProcessInfo function
Describe "Get-ProcessInfo" {
It "Should define the Get-ProcessInfo function" {
Get-Command Get-ProcessInfo -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Clear-EventLogs function
Describe "Clear-EventLogs" {
It "Should define the Clear-EventLogs function" {
Get-Command Clear-EventLogs -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-ComputerInfo function
Describe "Get-ComputerInfo" {
It "Should define the Get-ComputerInfo function" {
Get-Command Get-ComputerInfo -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Find-LargestFiles function
Describe "Find-LargestFiles" {
It "Should define the Find-LargestFiles function" {
Get-Command Find-LargestFiles -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-UserAccount function
Describe "Get-UserAccount" {
It "Should define the Get-UserAccount function" {
Get-Command Get-UserAccount -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Export-ProcessList function
Describe "Export-ProcessList" {
It "Should define the Export-ProcessList function" {
Get-Command Export-ProcessList -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-ServiceStatus function
Describe "Get-ServiceStatus" {
It "Should define the Get-ServiceStatus function" {
Get-Command Get-ServiceStatus -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Start-ProcessAsAdmin function
Describe "Start-ProcessAsAdmin" {
It "Should define the Start-ProcessAsAdmin function" {
Get-Command Start-ProcessAsAdmin -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-FileHash function
Describe "Get-FileHash" {
It "Should define the Get-FileHash function" {
Get-Command Get-FileHash -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Register-Task function
Describe "Register-Task" {
It "Should define the Register-Task function" {
Get-Command Register-Task -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-InstalledSoftware function
Describe "Get-InstalledSoftware" {
It "Should define the Get-InstalledSoftware function" {
Get-Command Get-InstalledSoftware -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-NetworkInfo function
Describe "Get-NetworkInfo" {
It "Should define the Get-NetworkInfo function" {
Get-Command Get-NetworkInfo -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Show-DiskSpace function
Describe "Show-DiskSpace" {
It "Should define the Show-DiskSpace function" {
Get-Command Show-DiskSpace -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Stop-ProcessByName function
Describe "Stop-ProcessByName" {
It "Should define the Stop-ProcessByName function" {
Get-Command Stop-ProcessByName -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Convert-ToHtml function
Describe "Convert-ToHtml" {
It "Should define the Convert-ToHtml function" {
Get-Command Convert-ToHtml -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-SystemUptime function
Describe "Get-SystemUptime" {
It "Should define the Get-SystemUptime function" {
Get-Command Get-SystemUptime -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-ProcessCPUUsage function
Describe "Get-ProcessCPUUsage" {
It "Should define the Get-ProcessCPUUsage function" {
Get-Command Get-ProcessCPUUsage -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Export-EventLogs function
Describe "Export-EventLogs" {
It "Should define the Export-EventLogs function" {
Get-Command Export-EventLogs -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Send-Email function
Describe "Send-Email" {
It "Should define the Send-Email function" {
Get-Command Send-Email -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Repair-All function
Describe "Repair-All" {
It "Should define the Repair-All function" {
Get-Command Repair-All -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for BootDate function
Describe "BootDate" {
It "Should define the BootDate function" {
Get-Command BootDate -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for WingetUpdate function
Describe "WingetUpdate" {
It "Should define the WingetUpdate function" {
Get-Command WingetUpdate -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for pretty function
Describe "pretty" {
It "Should define the pretty function" {
Get-Command pretty -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Clear-Clipboard function
Describe "Clear-Clipboard" {
It "Should define the Clear-Clipboard function" {
Get-Command Clear-Clipboard -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-RegistryValue function
Describe "Get-RegistryValue" {
It "Should define the Get-RegistryValue function" {
Get-Command Get-RegistryValue -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Show-DirectorySize function
Describe "Show-DirectorySize" {
It "Should define the Show-DirectorySize function" {
Get-Command Show-DirectorySize -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-Services function
Describe "Get-Services" {
It "Should define the Get-Services function" {
Get-Command Get-Services -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-SystemInfo function
Describe "Get-SystemInfo" {
It "Should define the Get-SystemInfo function" {
Get-Command Get-SystemInfo -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-EnvironmentVariables function
Describe "Get-EnvironmentVariables" {
It "Should define the Get-EnvironmentVariables function" {
Get-Command Get-EnvironmentVariables -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Backup-Files function
Describe "Backup-Files" {
It "Should define the Backup-Files function" {
Get-Command Backup-Files -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for editprofile function
Describe "editprofile" {
It "Should define the editprofile function" {
Get-Command editprofile -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Notepad++ function
Describe "NotepadPlusPlus" {
It "Should define the NotepadPlusPlus function" {
Get-Command NotepadPlusPlus -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Open-Code function
Describe "Open-Code" {
It "Should define the Open-Code function" {
Get-Command Open-Code -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-DirSize function
Describe "Get-DirSize" {
It "Should define the Get-DirSize function" {
Get-Command Get-DirSize -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-TopProcesses function
Describe "Get-TopProcesses" {
It "Should define the Get-TopProcesses function" {
Get-Command Get-TopProcesses -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Test-DiskSpace function
Describe "Test-DiskSpace" {
It "Should define the Test-DiskSpace function" {
Get-Command Test-DiskSpace -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Search-File function
Describe "Search-File" {
It "Should define the Search-File function" {
Get-Command Search-File -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-NetworkAdapterInfo function
Describe "Get-NetworkAdapterInfo" {
It "Should define the Get-NetworkAdapterInfo function" {
Get-Command Get-NetworkAdapterInfo -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Restart-Explorer function
Describe "Restart-Explorer" {
It "Should define the Restart-Explorer function" {
Get-Command Restart-Explorer -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Clear-TempFiles function
Describe "Clear-TempFiles" {
It "Should define the Clear-TempFiles function" {
Get-Command Clear-TempFiles -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Test-InternetConnection function
Describe "Test-InternetConnection" {
It "Should define the Test-InternetConnection function" {
Get-Command Test-InternetConnection -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Set-Wallpaper function
Describe "Set-Wallpaper" {
It "Should define the Set-Wallpaper function" {
Get-Command Set-Wallpaper -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Show-LastBootTime function
Describe "Show-LastBootTime" {
It "Should define the Show-LastBootTime function" {
Get-Command Show-LastBootTime -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Clear-RecycleBin function
Describe "Clear-RecycleBin" {
It "Should define the Clear-RecycleBin function" {
Get-Command Clear-RecycleBin -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Lock-Workstation function
Describe "Lock-Workstation" {
It "Should define the Lock-Workstation function" {
Get-Command Lock-Workstation -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Watch-LogFile function
Describe "Watch-LogFile" {
It "Should define the Watch-LogFile function" {
Get-Command Watch-LogFile -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Search-InFiles function
Describe "Search-InFiles" {
It "Should define the Search-InFiles function" {
Get-Command Search-InFiles -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-File function
Describe "Get-File" {
It "Should define the Get-File function" {
Get-Command Get-File -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Test-WebsiteStatus function
Describe "Test-WebsiteStatus" {
It "Should define the Test-WebsiteStatus function" {
Get-Command Test-WebsiteStatus -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-IPFromHostname function
Describe "Get-IPFromHostname" {
It "Should define the Get-IPFromHostname function" {
Get-Command Get-IPFromHostname -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Compress-OldFiles function
Describe "Compress-OldFiles" {
It "Should define the Compress-OldFiles function" {
Get-Command Compress-OldFiles -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Watch-SystemUsage function
Describe "Watch-SystemUsage" {
It "Should define the Watch-SystemUsage function" {
Get-Command Watch-SystemUsage -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Send-SystemInfoEmail function
Describe "Send-SystemInfoEmail" {
It "Should define the Send-SystemInfoEmail function" {
Get-Command Send-SystemInfoEmail -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Backup-And-Compress function
Describe "Backup-And-Compress" {
It "Should define the Backup-And-Compress function" {
Get-Command Backup-And-Compress -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Test-SystemUptime function
Describe "Test-SystemUptime" {
It "Should define the Test-SystemUptime function" {
Get-Command Test-SystemUptime -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Update-WindowsDefender function
Describe "Update-WindowsDefender" {
It "Should define the Update-WindowsDefender function" {
Get-Command Update-WindowsDefender -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Test-NetworkLatency function
Describe "Test-NetworkLatency" {
It "Should define the Test-NetworkLatency function" {
Get-Command Test-NetworkLatency -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-SecurityAuditLogs function
Describe "Get-SecurityAuditLogs" {
It "Should define the Get-SecurityAuditLogs function" {
Get-Command Get-SecurityAuditLogs -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-DiskUsageReport function
Describe "Get-DiskUsageReport" {
It "Should define the Get-DiskUsageReport function" {
Get-Command Get-DiskUsageReport -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for cdgithub function
Describe "cdgithub" {
It "Should define the cdgithub function" {
Get-Command cdgithub -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-SystemInformationReport function
Describe "Get-SystemInformationReport" {
It "Should define the Get-SystemInformationReport function" {
Get-Command Get-SystemInformationReport -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Test-WebsiteResponse function
Describe "Test-WebsiteResponse" {
It "Should define the Test-WebsiteResponse function" {
Get-Command Test-WebsiteResponse -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Invoke-Traceroute function
Describe "Invoke-Traceroute" {
It "Should define the Invoke-Traceroute function" {
Get-Command Invoke-Traceroute -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Test-Port function
Describe "Test-Port" {
It "Should define the Test-Port function" {
Get-Command Test-Port -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Test-MultiHostLatency function
Describe "Test-MultiHostLatency" {
It "Should define the Test-MultiHostLatency function" {
Get-Command Test-MultiHostLatency -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-SSLCertificateExpiry function
Describe "Get-SSLCertificateExpiry" {
It "Should define the Get-SSLCertificateExpiry function" {
Get-Command Get-SSLCertificateExpiry -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Find-LocalNetworkDevices function
Describe "Find-LocalNetworkDevices" {
It "Should define the Find-LocalNetworkDevices function" {
Get-Command Find-LocalNetworkDevices -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Find-LocalNetworkDevicesSimple function
Describe "Find-LocalNetworkDevicesSimple" {
It "Should define the Find-LocalNetworkDevicesSimple function" {
Get-Command Find-LocalNetworkDevicesSimple -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-ARPTableDevices function
Describe "Get-ARPTableDevices" {
It "Should define the Get-ARPTableDevices function" {
Get-Command Get-ARPTableDevices -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Find-DevicesWithNmap function
Describe "Find-DevicesWithNmap" {
It "Should define the Find-DevicesWithNmap function" {
Get-Command Find-DevicesWithNmap -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Find-LocalNetworkNeighbors function
Describe "Find-LocalNetworkNeighbors" {
It "Should define the Find-LocalNetworkNeighbors function" {
Get-Command Find-LocalNetworkNeighbors -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Find-mDNSDevices function
Describe "Find-mDNSDevices" {
It "Should define the Find-mDNSDevices function" {
Get-Command Find-mDNSDevices -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-NetworkDeviceMap function
Describe "Get-NetworkDeviceMap" {
It "Should define the Get-NetworkDeviceMap function" {
Get-Command Get-NetworkDeviceMap -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-AllDNSRecords function
Describe "Get-AllDNSRecords" {
It "Should define the Get-AllDNSRecords function" {
Get-Command Get-AllDNSRecords -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-DnsRecords function
Describe "Get-DnsRecords" {
It "Should define the Get-DnsRecords function" {
Get-Command Get-DnsRecords -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for Get-Elevation function
Describe "Get-Elevation" {
It "Should define the Get-Elevation function" {
Get-Command Get-Elevation -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion
#region Tests for AddWinRMTrustLocalHost function
Describe "AddWinRMTrustLocalHost" {
It "Should define the AddWinRMTrustLocalHost function" {
Get-Command AddWinRMTrustLocalHost -CommandType Function | Should -Not -BeNullOrEmpty
}
}
#endregion