2016-07-20 23:46:54 +02:00
|
|
|
Describe "Send-Greeting cmdlet" -Tag 'Slow','CI' {
|
2016-05-04 19:25:04 +02:00
|
|
|
It "Should be able build the cmdlet" {
|
|
|
|
Remove-Item -Recurse -Force bin -ErrorAction SilentlyContinue
|
|
|
|
dotnet restore --verbosity Error | Should BeNullOrEmpty
|
2016-06-06 20:28:44 +02:00
|
|
|
dotnet build | ?{ $_ -match "Compiling SendGreeting for .NETStandard,Version=v1.3" } | Should Not BeNullOrEmpty
|
2016-05-04 19:25:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
It "Should be able to use the module" {
|
2016-06-06 20:28:44 +02:00
|
|
|
Import-Module -ErrorAction Stop ./bin/Debug/netstandard1.3/SendGreeting.dll
|
2016-05-04 19:25:04 +02:00
|
|
|
Send-Greeting -Name World | Should Be "Hello World!"
|
|
|
|
Remove-Module SendGreeting
|
|
|
|
}
|
|
|
|
}
|