-
-
Notifications
You must be signed in to change notification settings - Fork 476
Context
mwrock edited this page Oct 22, 2012
·
4 revisions
Provides syntactic sugar for logically grouping It blocks within a single Describe block.
###Name The name of the Context. This is a phrase describing a set of tests within a describe.
###Fixture Script that is executed. This may include setup specific to the context and one or more It blocks that validate the expected outcomes.
function Add-Numbers($a, $b) {
return $a + $b
}
Describe "Add-Numbers" {
Context "when root does not exist" {
It "..." { ... }
}
Context "when root does exist" {
It "..." { ... }
It "..." { ... }
It "..." { ... }
}
}