File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
exercises/practice/two-bucket Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ description = "Measure one step using bucket one of size 1 and bucket two of siz
2727[eb329c63-5540-4735-b30b-97f7f4df0f84 ]
2828description = " Measure using bucket one of size 2 and bucket two of size 3 - start with bucket one and end with bucket two"
2929
30+ [58d70152-bf2b-46bb-ad54-be58ebe94c03 ]
31+ description = " Measure using bucket one much bigger than bucket two"
32+
33+ [9dbe6499-caa5-4a58-b5ce-c988d71b8981 ]
34+ description = " Measure using bucket one much smaller than bucket two"
35+
3036[449be72d-b10a-4f4b-a959-ca741e333b72 ]
3137description = " Not possible to reach the goal"
3238
Original file line number Diff line number Diff line change @@ -60,6 +60,26 @@ public void Measure_using_bucket_one_of_size_2_and_bucket_two_of_size_3_start_wi
6060 Assert . Equal ( Bucket . Two , actual . GoalBucket ) ;
6161 }
6262
63+ [ Fact ( Skip = "Remove this Skip property to run this test" ) ]
64+ public void Measure_using_bucket_one_much_bigger_than_bucket_two ( )
65+ {
66+ var sut = new TwoBucket ( 5 , 1 , Bucket . One ) ;
67+ var actual = sut . Measure ( 2 ) ;
68+ Assert . Equal ( 6 , actual . Moves ) ;
69+ Assert . Equal ( 1 , actual . OtherBucket ) ;
70+ Assert . Equal ( Bucket . One , actual . GoalBucket ) ;
71+ }
72+
73+ [ Fact ( Skip = "Remove this Skip property to run this test" ) ]
74+ public void Measure_using_bucket_one_much_smaller_than_bucket_two ( )
75+ {
76+ var sut = new TwoBucket ( 3 , 15 , Bucket . One ) ;
77+ var actual = sut . Measure ( 9 ) ;
78+ Assert . Equal ( 6 , actual . Moves ) ;
79+ Assert . Equal ( 0 , actual . OtherBucket ) ;
80+ Assert . Equal ( Bucket . Two , actual . GoalBucket ) ;
81+ }
82+
6383 [ Fact ( Skip = "Remove this Skip property to run this test" ) ]
6484 public void Not_possible_to_reach_the_goal ( )
6585 {
You can’t perform that action at this time.
0 commit comments