Created
December 28, 2015 19:09
-
-
Save gabrielrojasnyc/4e3b0a6b99953f5f94c0 to your computer and use it in GitHub Desktop.
Get-LocalNIC.test.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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