main
1using developwithpassion.bdd;
2using developwithpassion.bdd.contexts;
3using developwithpassion.bdd.mbunit.standard.observations;
4using mars.rover.common;
5using mars.rover.presentation.infrastructure;
6
7namespace specifications.presentation.infrastructure
8{
9 public class SynchronousCommandProcessorSpecs
10 {
11 }
12
13 public class when_running_a_series_of_commands_synchronously :
14 observations_for_a_sut_with_a_contract<CommandProcessor, SynchronousCommandProcessor>
15 {
16 it should_run_each_command = () =>
17 {
18 first.was_told_to(x => x.run());
19 second.was_told_to(x => x.run());
20 };
21
22 context c = () =>
23 {
24 first = an<Command>();
25 second = an<Command>();
26 };
27
28 because b = () =>
29 {
30 sut.add(first);
31 sut.add(second);
32 sut.run();
33 };
34
35 static Command first;
36 static Command second;
37 }
38}