Skip to content

Commit

Permalink
Adapt test to new output
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleid committed Apr 7, 2020
1 parent b9d0c1e commit 57ac389
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions asa.unittest.tests/Start-AutRun.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Describe "Start-AutRun parameter asaNugetVersion" {
Mock New-AutRunJob {}
Mock Get-AutRunResult {}
Mock Get-ChildItem {}
Mock Get-Content {}

$t_asaNugetVersion = "2.3.0"
It "runs with a valid asaNugetVersion" {
Expand Down Expand Up @@ -112,6 +113,7 @@ Describe "Start-AutRun parameter solutionPath" {
Mock New-AutRunJob {}
Mock Get-AutRunResult {}
Mock Get-ChildItem {}
Mock Get-Content {}

It "runs with a valid solutionPath" {
Start-AutRun `
Expand Down Expand Up @@ -174,6 +176,7 @@ Describe "Start-AutRun parameter asaProjectName" {
Mock New-AutRunJob {}
Mock Get-AutRunResult {}
Mock Get-ChildItem {}
Mock Get-Content {}

$t_solutionPath = "foo"
It "runs with a asaProjectName" {
Expand Down Expand Up @@ -264,6 +267,7 @@ Describe "Start-AutRun parameter unittestFolder" {`
Mock New-AutRunJob {}
Mock Get-AutRunResult {}
Mock Get-ChildItem {}
Mock Get-Content {}

It "runs with a valid unittestFolder" {
Start-AutRun `
Expand Down Expand Up @@ -347,6 +351,7 @@ Describe "Start-AutRun behavior orchestration" {`
Mock New-AutRunJob {}
Mock Get-AutRunResult {}
Mock Get-ChildItem {}
Mock Get-Content {}

It "doesn't run on -Whatif" {
Start-AutRun `
Expand Down Expand Up @@ -448,6 +453,7 @@ Describe "Start-AutRun behavior result processing" {`
Mock New-AutRunJob {}
Mock Get-AutRunResult {return 0}
Mock Get-ChildItem {}
Mock Get-Content {return "MyErrorResults"}

It "doesn't throw for 0 errors" {
{Start-AutRun `
Expand Down

0 comments on commit 57ac389

Please sign in to comment.