main
 1using developwithpassion.bdd.contexts;
 2using developwithpassion.bdd.mbunit;
 3using developwithpassion.bdd.mbunit.standard.observations;
 4using mars.rover.domain;
 5
 6namespace specifications.domain
 7{
 8    public class SouthSpecs
 9    {
10        
11    }
12
13    public class when_at_the_most_southern_point_on_the_plateau_and_attempting_to_move_forward_one_grid_point :
14        observations_for_a_sut_with_a_contract<Heading, South>
15    {
16        it should_not_move_from_its_current_position = () =>
17                                                           {
18                                                               y.should_be_equal_to<Coordinate>(0);
19                                                               x.should_be_equal_to<Coordinate>(0);
20                                                           };
21
22        context c = () =>
23                        {
24                            y = new Coordinate(0);
25                            x = new Coordinate(0);
26                        };
27
28        because b = () => sut.move_forward_from(x, y);
29
30        public override Heading create_sut()
31        {
32            return new South(new Mars(5, 5));
33        }
34
35        static Coordinate y;
36        static Coordinate x;
37    }
38}