diff options
| author | mo k <mo@mokhan.ca> | 2012-04-12 21:48:17 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-04-12 21:48:17 -0600 |
| commit | 4e2cb5a2d9c68bbdbf0ba24a5704ee5d6a13746a (patch) | |
| tree | 8a900c348bb4c55b777c11967a296c7a69a933ed /src | |
| parent | 071d432d0f399030e38a4543741a3b108f133acb (diff) | |
tweaked jp's continuous testing script.
Diffstat (limited to 'src')
| -rwxr-xr-x | src/test/GreetingSpecs.cs | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/src/test/GreetingSpecs.cs b/src/test/GreetingSpecs.cs index 764a688..9c3db16 100755 --- a/src/test/GreetingSpecs.cs +++ b/src/test/GreetingSpecs.cs @@ -3,43 +3,43 @@ using Machine.Specifications;
using domain;
- public class GreetingSpecs
+ public class GreetingSpecs
+ {
+ Establish context = () =>
{
- Establish context = () =>
- {
- sut = new Greeting();
- };
-
- public class when_greeting_someone
- {
- Because of = () =>
- {
- result = sut.Hello();
- };
-
- It should_say_hello = () =>
- {
- result.ShouldEqual("hello");
- };
-
- static string result;
- }
-
- public class when_saying_goodbye
- {
- Because of = () =>
- {
- result = sut.Goodbye();
- };
-
- It should_say_goodbye = () =>
- {
- result.ShouldEqual("goodbye");
- };
-
- static string result;
- }
-
- static Greeting sut;
+ sut = new Greeting();
+ };
+
+ public class when_greeting_someone
+ {
+ Because of = () =>
+ {
+ result = sut.Hello();
+ };
+
+ It should_say_hello = () =>
+ {
+ result.ShouldEqual("hello");
+ };
+
+ static string result;
+ }
+
+ public class when_saying_goodbye
+ {
+ Because of = () =>
+ {
+ result = sut.Goodbye();
+ };
+
+ It should_say_goodbye = () =>
+ {
+ result.ShouldEqual("goodbye");
+ };
+
+ static string result;
}
+
+ static Greeting sut;
+ }
}
|
