-
-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1292 from robkeim/update-canonical-data
Update canonical data to latest version
- Loading branch information
Showing
11 changed files
with
113 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,84 @@ | ||
// This file was auto-generated based on version 1.1.0 of the canonical data. | ||
// This file was auto-generated based on version 2.2.0 of the canonical data. | ||
|
||
using Xunit; | ||
|
||
public class DartsTest | ||
{ | ||
[Fact] | ||
public void A_dart_lands_outside_the_target() | ||
public void Missed_target() | ||
{ | ||
Assert.Equal(0, Darts.Score(-9, 9)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void A_dart_lands_just_in_the_border_of_the_target() | ||
public void On_the_outer_circle() | ||
{ | ||
Assert.Equal(1, Darts.Score(0, 10)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void A_dart_lands_in_the_outer_circle() | ||
public void On_the_middle_circle() | ||
{ | ||
Assert.Equal(1, Darts.Score(4, 4)); | ||
Assert.Equal(5, Darts.Score(-5, 0)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void A_dart_lands_right_in_the_border_between_outer_and_middle_circles() | ||
public void On_the_inner_circle() | ||
{ | ||
Assert.Equal(5, Darts.Score(5, 0)); | ||
Assert.Equal(10, Darts.Score(0, -1)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void Exactly_on_centre() | ||
{ | ||
Assert.Equal(10, Darts.Score(0, 0)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void Near_the_centre() | ||
{ | ||
Assert.Equal(10, Darts.Score(-0.1, -0.1)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void Just_within_the_inner_circle() | ||
{ | ||
Assert.Equal(10, Darts.Score(0.7, 0.7)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void A_dart_lands_in_the_middle_circle() | ||
public void Just_outside_the_inner_circle() | ||
{ | ||
Assert.Equal(5, Darts.Score(0.8, -0.8)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void A_dart_lands_right_in_the_border_between_middle_and_inner_circles() | ||
public void Just_within_the_middle_circle() | ||
{ | ||
Assert.Equal(10, Darts.Score(0, -1)); | ||
Assert.Equal(5, Darts.Score(-3.5, 3.5)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void A_dart_lands_in_the_inner_circle() | ||
public void Just_outside_the_middle_circle() | ||
{ | ||
Assert.Equal(10, Darts.Score(-0.1, -0.1)); | ||
Assert.Equal(1, Darts.Score(-3.6, -3.6)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void Just_within_the_outer_circle() | ||
{ | ||
Assert.Equal(1, Darts.Score(-7, 7)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void Just_outside_the_outer_circle() | ||
{ | ||
Assert.Equal(0, Darts.Score(7.1, -7.1)); | ||
} | ||
|
||
[Fact(Skip = "Remove to run test")] | ||
public void Asymmetric_position_between_the_inner_and_middle_circles() | ||
{ | ||
Assert.Equal(5, Darts.Score(0.5, -4)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters