1
+ // This file was auto-generated based on version 1.0.0 of the canonical data.
2
+
3
+ using Xunit ;
4
+
5
+ public class KindergartenGardenTest
6
+ {
7
+ [ Fact ]
8
+ public void Partial_garden_garden_with_single_student ( )
9
+ {
10
+ var sut = new KindergartenGarden ( "RC\n GG" ) ;
11
+ Assert . Equal ( new [ ] { Plant . Radishes , Plant . Clover , Plant . Grass , Plant . Grass } , sut . Plants ( "Alice" ) ) ;
12
+ }
13
+
14
+ [ Fact ( Skip = "Remove to run test" ) ]
15
+ public void Partial_garden_different_garden_with_single_student ( )
16
+ {
17
+ var sut = new KindergartenGarden ( "VC\n RC" ) ;
18
+ Assert . Equal ( new [ ] { Plant . Violets , Plant . Clover , Plant . Radishes , Plant . Clover } , sut . Plants ( "Alice" ) ) ;
19
+ }
20
+
21
+ [ Fact ( Skip = "Remove to run test" ) ]
22
+ public void Partial_garden_garden_with_two_students ( )
23
+ {
24
+ var sut = new KindergartenGarden ( "VVCG\n VVRC" ) ;
25
+ Assert . Equal ( new [ ] { Plant . Clover , Plant . Grass , Plant . Radishes , Plant . Clover } , sut . Plants ( "Bob" ) ) ;
26
+ }
27
+
28
+ [ Fact ( Skip = "Remove to run test" ) ]
29
+ public void Partial_garden_multiple_students_for_the_same_garden_with_three_students_second_students_garden ( )
30
+ {
31
+ var sut = new KindergartenGarden ( "VVCCGG\n VVCCGG" ) ;
32
+ Assert . Equal ( new [ ] { Plant . Clover , Plant . Clover , Plant . Clover , Plant . Clover } , sut . Plants ( "Bob" ) ) ;
33
+ }
34
+
35
+ [ Fact ( Skip = "Remove to run test" ) ]
36
+ public void Partial_garden_multiple_students_for_the_same_garden_with_three_students_third_students_garden ( )
37
+ {
38
+ var sut = new KindergartenGarden ( "VVCCGG\n VVCCGG" ) ;
39
+ Assert . Equal ( new [ ] { Plant . Grass , Plant . Grass , Plant . Grass , Plant . Grass } , sut . Plants ( "Charlie" ) ) ;
40
+ }
41
+
42
+ [ Fact ( Skip = "Remove to run test" ) ]
43
+ public void Full_garden_first_students_garden ( )
44
+ {
45
+ var sut = new KindergartenGarden ( "VRCGVVRVCGGCCGVRGCVCGCGV\n VRCCCGCRRGVCGCRVVCVGCGCV" ) ;
46
+ Assert . Equal ( new [ ] { Plant . Violets , Plant . Radishes , Plant . Violets , Plant . Radishes } , sut . Plants ( "Alice" ) ) ;
47
+ }
48
+
49
+ [ Fact ( Skip = "Remove to run test" ) ]
50
+ public void Full_garden_second_students_garden ( )
51
+ {
52
+ var sut = new KindergartenGarden ( "VRCGVVRVCGGCCGVRGCVCGCGV\n VRCCCGCRRGVCGCRVVCVGCGCV" ) ;
53
+ Assert . Equal ( new [ ] { Plant . Clover , Plant . Grass , Plant . Clover , Plant . Clover } , sut . Plants ( "Bob" ) ) ;
54
+ }
55
+
56
+ [ Fact ( Skip = "Remove to run test" ) ]
57
+ public void Full_garden_second_to_last_students_garden ( )
58
+ {
59
+ var sut = new KindergartenGarden ( "VRCGVVRVCGGCCGVRGCVCGCGV\n VRCCCGCRRGVCGCRVVCVGCGCV" ) ;
60
+ Assert . Equal ( new [ ] { Plant . Grass , Plant . Clover , Plant . Clover , Plant . Grass } , sut . Plants ( "Kincaid" ) ) ;
61
+ }
62
+
63
+ [ Fact ( Skip = "Remove to run test" ) ]
64
+ public void Full_garden_last_students_garden ( )
65
+ {
66
+ var sut = new KindergartenGarden ( "VRCGVVRVCGGCCGVRGCVCGCGV\n VRCCCGCRRGVCGCRVVCVGCGCV" ) ;
67
+ Assert . Equal ( new [ ] { Plant . Grass , Plant . Violets , Plant . Clover , Plant . Violets } , sut . Plants ( "Larry" ) ) ;
68
+ }
69
+
70
+ [ Fact ( Skip = "Remove to run test" ) ]
71
+ public void Non_alphabetical_student_list_first_students_garden ( )
72
+ {
73
+ var sut = new KindergartenGarden ( "VCRRGVRG\n RVGCCGCV" , new [ ] { "Samantha" , "Patricia" , "Xander" , "Roger" } ) ;
74
+ Assert . Equal ( new [ ] { Plant . Violets , Plant . Clover , Plant . Radishes , Plant . Violets } , sut . Plants ( "Patricia" ) ) ;
75
+ }
76
+
77
+ [ Fact ( Skip = "Remove to run test" ) ]
78
+ public void Non_alphabetical_student_list_second_students_garden ( )
79
+ {
80
+ var sut = new KindergartenGarden ( "VCRRGVRG\n RVGCCGCV" , new [ ] { "Samantha" , "Patricia" , "Xander" , "Roger" } ) ;
81
+ Assert . Equal ( new [ ] { Plant . Radishes , Plant . Radishes , Plant . Grass , Plant . Clover } , sut . Plants ( "Roger" ) ) ;
82
+ }
83
+
84
+ [ Fact ( Skip = "Remove to run test" ) ]
85
+ public void Non_alphabetical_student_list_third_students_garden ( )
86
+ {
87
+ var sut = new KindergartenGarden ( "VCRRGVRG\n RVGCCGCV" , new [ ] { "Samantha" , "Patricia" , "Xander" , "Roger" } ) ;
88
+ Assert . Equal ( new [ ] { Plant . Grass , Plant . Violets , Plant . Clover , Plant . Grass } , sut . Plants ( "Samantha" ) ) ;
89
+ }
90
+
91
+ [ Fact ( Skip = "Remove to run test" ) ]
92
+ public void Non_alphabetical_student_list_fourth_last_students_garden ( )
93
+ {
94
+ var sut = new KindergartenGarden ( "VCRRGVRG\n RVGCCGCV" , new [ ] { "Samantha" , "Patricia" , "Xander" , "Roger" } ) ;
95
+ Assert . Equal ( new [ ] { Plant . Radishes , Plant . Grass , Plant . Clover , Plant . Violets } , sut . Plants ( "Xander" ) ) ;
96
+ }
97
+ }
0 commit comments