summaryrefslogtreecommitdiff
path: root/src/test/GreetingSpecs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/GreetingSpecs.cs')
-rwxr-xr-xsrc/test/GreetingSpecs.cs53
1 files changed, 36 insertions, 17 deletions
diff --git a/src/test/GreetingSpecs.cs b/src/test/GreetingSpecs.cs
index 798b00a..764a688 100755
--- a/src/test/GreetingSpecs.cs
+++ b/src/test/GreetingSpecs.cs
@@ -5,22 +5,41 @@
public class GreetingSpecs
{
- Establish context = () =>
- {
- sut = new Greeting();
- };
-
- Because of = () =>
- {
- result = sut.Hello();
- };
-
- It should_say_hello = () =>
- {
- result.ShouldEqual("hello");
- };
-
- static Greeting sut;
- static string result;
+ 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;
}
}