aboutsummaryrefslogtreecommitdiff
path: root/Tests/Recon.tests.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Recon.tests.ps1')
-rw-r--r--Tests/Recon.tests.ps138
1 files changed, 0 insertions, 38 deletions
diff --git a/Tests/Recon.tests.ps1 b/Tests/Recon.tests.ps1
index 8fd3d75..a297ed9 100644
--- a/Tests/Recon.tests.ps1
+++ b/Tests/Recon.tests.ps1
@@ -30,32 +30,6 @@ Describe 'Export-PowerViewCSV' {
}
}
-
-Describe 'Set-MacAttribute' {
- BeforeEach {
- New-Item MacAttribute.test.txt -Type file
- }
- AfterEach {
- Remove-Item -Force MacAttribute.test.txt
- }
- It 'Should clone MAC attributes of existing file' {
- Set-MacAttribute -FilePath MacAttribute.test.txt -All '01/01/2000 12:00 am'
- $File = (Get-Item MacAttribute.test.txt)
- $Date = Get-Date -Date '2000-01-01 00:00:00'
-
- if ($File.LastWriteTime -ne $Date) {
- Throw 'File LastWriteTime does Not match'
- }
- elseif($File.LastAccessTime -ne $Date) {
- Throw 'File LastAccessTime does Not match'
- }
- elseif($File.CreationTime -ne $Date) {
- Throw 'File CreationTime does Not match'
- }
- }
-}
-
-
Describe 'Get-IPAddress' {
$IPregex = "(?<Address>((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))"
It 'Should return local IP address' {
@@ -136,18 +110,6 @@ Describe 'Get-NameField' {
}
-Describe 'Invoke-ThreadedFunction' {
- It "Should allow threaded ping" {
- $Hosts = ,"localhost" * 100
- $Ping = {param($ComputerName) if(Test-Connection -ComputerName $ComputerName -Count 1 -Quiet -ErrorAction Stop){$ComputerName}}
- $Hosts = Invoke-ThreadedFunction -NoImports -ComputerName $Hosts -ScriptBlock $Ping -Threads 20
- if($Hosts.length -ne 100) {
- Throw 'Error in using Invoke-ThreadedFunction to ping localhost'
- }
- }
-}
-
-
Describe "Get-NetLocalGroup" {
It "Should return results for local machine administrators" {
if ( (Get-NetLocalGroup | Measure-Object).count -lt 1) {