main
1namespace test
2{
3 using Machine.Specifications;
4 using domain;
5
6 public class GreetingSpecs
7 {
8 Establish context = () =>
9 {
10 sut = new Greeting();
11 };
12
13 public class when_greeting_someone
14 {
15 Because of = () =>
16 {
17 result = sut.Hello();
18 };
19
20 It should_say_hello = () =>
21 {
22 result.ShouldEqual("hello");
23 };
24
25 static string result;
26 }
27
28 public class when_saying_goodbye
29 {
30 Because of = () =>
31 {
32 result = sut.Goodbye();
33 };
34
35 It should_say_goodbye = () =>
36 {
37 result.ShouldEqual("goodbye");
38 };
39
40 static string result;
41 }
42
43 static Greeting sut;
44 }
45}