Skip to content

Instantly share code, notes, and snippets.

@gabrielrojasnyc
Created December 28, 2015 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielrojasnyc/4e3b0a6b99953f5f94c0 to your computer and use it in GitHub Desktop.
Save gabrielrojasnyc/4e3b0a6b99953f5f94c0 to your computer and use it in GitHub Desktop.
Get-LocalNIC.test.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here\$sut"
Describe "Get-LocalNIC" {
It "makes sure there is a NIC with the Wi-Fi name present" {
Get-LocalNICName | Should Be 'Wi-Fi'
}
It "returns the MTU size = 1500" {
Get-LocalNICMTUSize 'Wi-Fi' | Should Be '1500'
}
It "makes sure the NIC is set for Full Duplex"{
Get-LocalNICFullDuplex 'Wi-Fi' | Should BeExactly 'True'
}
It "The system name should be $env:computername" {
Get-LocalNICSystemName 'Wi-Fi' | should Be "$env:computername"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment