Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

robot-simulator: update to latest canonical data #1287

Merged
merged 1 commit into from
Jun 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions exercises/robot-simulator/RobotSimulatorTest.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// This file was auto-generated based on version 3.1.0 of the canonical data.
// This file was auto-generated based on version 3.2.0 of the canonical data.

using Xunit;

public class RobotSimulatorTest
{
[Fact]
public void A_robot_is_created_with_a_position_and_a_direction_robots_are_created_with_a_position_and_direction()
public void Create_robot_at_origin_facing_north()
{
var sut = new RobotSimulator(Direction.North, 0, 0);
Assert.Equal(Direction.North, sut.Direction);
Expand All @@ -14,7 +14,7 @@ public void A_robot_is_created_with_a_position_and_a_direction_robots_are_create
}

[Fact(Skip = "Remove to run test")]
public void A_robot_is_created_with_a_position_and_a_direction_negative_positions_are_allowed()
public void Create_robot_at_negative_position_facing_south()
{
var sut = new RobotSimulator(Direction.South, -1, -1);
Assert.Equal(Direction.South, sut.Direction);
Expand All @@ -23,7 +23,7 @@ public void A_robot_is_created_with_a_position_and_a_direction_negative_position
}

[Fact(Skip = "Remove to run test")]
public void Rotates_the_robots_direction_90_degrees_clockwise_changes_the_direction_from_north_to_east()
public void Rotating_clockwise_changes_north_to_east()
{
var sut = new RobotSimulator(Direction.North, 0, 0);
sut.Move("R");
Expand All @@ -33,7 +33,7 @@ public void Rotates_the_robots_direction_90_degrees_clockwise_changes_the_direct
}

[Fact(Skip = "Remove to run test")]
public void Rotates_the_robots_direction_90_degrees_clockwise_changes_the_direction_from_east_to_south()
public void Rotating_clockwise_changes_east_to_south()
{
var sut = new RobotSimulator(Direction.East, 0, 0);
sut.Move("R");
Expand All @@ -43,7 +43,7 @@ public void Rotates_the_robots_direction_90_degrees_clockwise_changes_the_direct
}

[Fact(Skip = "Remove to run test")]
public void Rotates_the_robots_direction_90_degrees_clockwise_changes_the_direction_from_south_to_west()
public void Rotating_clockwise_changes_south_to_west()
{
var sut = new RobotSimulator(Direction.South, 0, 0);
sut.Move("R");
Expand All @@ -53,7 +53,7 @@ public void Rotates_the_robots_direction_90_degrees_clockwise_changes_the_direct
}

[Fact(Skip = "Remove to run test")]
public void Rotates_the_robots_direction_90_degrees_clockwise_changes_the_direction_from_west_to_north()
public void Rotating_clockwise_changes_west_to_north()
{
var sut = new RobotSimulator(Direction.West, 0, 0);
sut.Move("R");
Expand All @@ -63,7 +63,7 @@ public void Rotates_the_robots_direction_90_degrees_clockwise_changes_the_direct
}

[Fact(Skip = "Remove to run test")]
public void Rotates_the_robots_direction_90_degrees_counter_clockwise_changes_the_direction_from_north_to_west()
public void Rotating_counter_clockwise_changes_north_to_west()
{
var sut = new RobotSimulator(Direction.North, 0, 0);
sut.Move("L");
Expand All @@ -73,7 +73,7 @@ public void Rotates_the_robots_direction_90_degrees_counter_clockwise_changes_th
}

[Fact(Skip = "Remove to run test")]
public void Rotates_the_robots_direction_90_degrees_counter_clockwise_changes_the_direction_from_west_to_south()
public void Rotating_counter_clockwise_changes_west_to_south()
{
var sut = new RobotSimulator(Direction.West, 0, 0);
sut.Move("L");
Expand All @@ -83,7 +83,7 @@ public void Rotates_the_robots_direction_90_degrees_counter_clockwise_changes_th
}

[Fact(Skip = "Remove to run test")]
public void Rotates_the_robots_direction_90_degrees_counter_clockwise_changes_the_direction_from_south_to_east()
public void Rotating_counter_clockwise_changes_south_to_east()
{
var sut = new RobotSimulator(Direction.South, 0, 0);
sut.Move("L");
Expand All @@ -93,7 +93,7 @@ public void Rotates_the_robots_direction_90_degrees_counter_clockwise_changes_th
}

[Fact(Skip = "Remove to run test")]
public void Rotates_the_robots_direction_90_degrees_counter_clockwise_changes_the_direction_from_east_to_north()
public void Rotating_counter_clockwise_changes_east_to_north()
{
var sut = new RobotSimulator(Direction.East, 0, 0);
sut.Move("L");
Expand All @@ -103,7 +103,7 @@ public void Rotates_the_robots_direction_90_degrees_counter_clockwise_changes_th
}

[Fact(Skip = "Remove to run test")]
public void Moves_the_robot_forward_1_space_in_the_direction_it_is_pointing_increases_the_y_coordinate_one_when_facing_north()
public void Moving_forward_one_facing_north_increments_y()
{
var sut = new RobotSimulator(Direction.North, 0, 0);
sut.Move("A");
Expand All @@ -113,7 +113,7 @@ public void Moves_the_robot_forward_1_space_in_the_direction_it_is_pointing_incr
}

[Fact(Skip = "Remove to run test")]
public void Moves_the_robot_forward_1_space_in_the_direction_it_is_pointing_decreases_the_y_coordinate_by_one_when_facing_south()
public void Moving_forward_one_facing_south_decrements_y()
{
var sut = new RobotSimulator(Direction.South, 0, 0);
sut.Move("A");
Expand All @@ -123,7 +123,7 @@ public void Moves_the_robot_forward_1_space_in_the_direction_it_is_pointing_decr
}

[Fact(Skip = "Remove to run test")]
public void Moves_the_robot_forward_1_space_in_the_direction_it_is_pointing_increases_the_x_coordinate_by_one_when_facing_east()
public void Moving_forward_one_facing_east_increments_x()
{
var sut = new RobotSimulator(Direction.East, 0, 0);
sut.Move("A");
Expand All @@ -133,7 +133,7 @@ public void Moves_the_robot_forward_1_space_in_the_direction_it_is_pointing_incr
}

[Fact(Skip = "Remove to run test")]
public void Moves_the_robot_forward_1_space_in_the_direction_it_is_pointing_decreases_the_x_coordinate_by_one_when_facing_west()
public void Moving_forward_one_facing_west_decrements_x()
{
var sut = new RobotSimulator(Direction.West, 0, 0);
sut.Move("A");
Expand All @@ -143,7 +143,7 @@ public void Moves_the_robot_forward_1_space_in_the_direction_it_is_pointing_decr
}

[Fact(Skip = "Remove to run test")]
public void Where_r_turn_right_l_turn_left_and_a_advance_the_robot_can_follow_a_series_of_instructions_and_end_up_with_the_correct_position_and_direction_instructions_to_move_east_and_north_from_readme()
public void Follow_series_of_instructions_moving_east_and_north_from_readme()
{
var sut = new RobotSimulator(Direction.North, 7, 3);
sut.Move("RAALAL");
Expand All @@ -153,7 +153,7 @@ public void Where_r_turn_right_l_turn_left_and_a_advance_the_robot_can_follow_a_
}

[Fact(Skip = "Remove to run test")]
public void Where_r_turn_right_l_turn_left_and_a_advance_the_robot_can_follow_a_series_of_instructions_and_end_up_with_the_correct_position_and_direction_instructions_to_move_west_and_north()
public void Follow_series_of_instructions_moving_west_and_north()
{
var sut = new RobotSimulator(Direction.North, 0, 0);
sut.Move("LAAARALA");
Expand All @@ -163,7 +163,7 @@ public void Where_r_turn_right_l_turn_left_and_a_advance_the_robot_can_follow_a_
}

[Fact(Skip = "Remove to run test")]
public void Where_r_turn_right_l_turn_left_and_a_advance_the_robot_can_follow_a_series_of_instructions_and_end_up_with_the_correct_position_and_direction_instructions_to_move_west_and_south()
public void Follow_series_of_instructions_moving_west_and_south()
{
var sut = new RobotSimulator(Direction.East, 2, -7);
sut.Move("RRAAAAALA");
Expand All @@ -173,7 +173,7 @@ public void Where_r_turn_right_l_turn_left_and_a_advance_the_robot_can_follow_a_
}

[Fact(Skip = "Remove to run test")]
public void Where_r_turn_right_l_turn_left_and_a_advance_the_robot_can_follow_a_series_of_instructions_and_end_up_with_the_correct_position_and_direction_instructions_to_move_east_and_north()
public void Follow_series_of_instructions_moving_east_and_north()
{
var sut = new RobotSimulator(Direction.South, 8, 4);
sut.Move("LAAARRRALLLL");
Expand Down