@@ -8,90 +8,90 @@ public class SayTest
8
8
[ Fact ]
9
9
public void Zero ( )
10
10
{
11
- Assert . Equal ( "zero" , Say . InEnglish ( 0 ) ) ;
11
+ Assert . Equal ( "zero" , Say . InEnglish ( 0L ) ) ;
12
12
}
13
13
14
14
[ Fact ( Skip = "Remove to run test" ) ]
15
15
public void One ( )
16
16
{
17
- Assert . Equal ( "one" , Say . InEnglish ( 1 ) ) ;
17
+ Assert . Equal ( "one" , Say . InEnglish ( 1L ) ) ;
18
18
}
19
19
20
20
[ Fact ( Skip = "Remove to run test" ) ]
21
21
public void Fourteen ( )
22
22
{
23
- Assert . Equal ( "fourteen" , Say . InEnglish ( 14 ) ) ;
23
+ Assert . Equal ( "fourteen" , Say . InEnglish ( 14L ) ) ;
24
24
}
25
25
26
26
[ Fact ( Skip = "Remove to run test" ) ]
27
27
public void Twenty ( )
28
28
{
29
- Assert . Equal ( "twenty" , Say . InEnglish ( 20 ) ) ;
29
+ Assert . Equal ( "twenty" , Say . InEnglish ( 20L ) ) ;
30
30
}
31
31
32
32
[ Fact ( Skip = "Remove to run test" ) ]
33
33
public void Twenty_two ( )
34
34
{
35
- Assert . Equal ( "twenty-two" , Say . InEnglish ( 22 ) ) ;
35
+ Assert . Equal ( "twenty-two" , Say . InEnglish ( 22L ) ) ;
36
36
}
37
37
38
38
[ Fact ( Skip = "Remove to run test" ) ]
39
39
public void One_hundred ( )
40
40
{
41
- Assert . Equal ( "one hundred" , Say . InEnglish ( 100 ) ) ;
41
+ Assert . Equal ( "one hundred" , Say . InEnglish ( 100L ) ) ;
42
42
}
43
43
44
44
[ Fact ( Skip = "Remove to run test" ) ]
45
45
public void One_hundred_twenty_three ( )
46
46
{
47
- Assert . Equal ( "one hundred twenty-three" , Say . InEnglish ( 123 ) ) ;
47
+ Assert . Equal ( "one hundred twenty-three" , Say . InEnglish ( 123L ) ) ;
48
48
}
49
49
50
50
[ Fact ( Skip = "Remove to run test" ) ]
51
51
public void One_thousand ( )
52
52
{
53
- Assert . Equal ( "one thousand" , Say . InEnglish ( 1000 ) ) ;
53
+ Assert . Equal ( "one thousand" , Say . InEnglish ( 1000L ) ) ;
54
54
}
55
55
56
56
[ Fact ( Skip = "Remove to run test" ) ]
57
57
public void One_thousand_two_hundred_thirty_four ( )
58
58
{
59
- Assert . Equal ( "one thousand two hundred thirty-four" , Say . InEnglish ( 1234 ) ) ;
59
+ Assert . Equal ( "one thousand two hundred thirty-four" , Say . InEnglish ( 1234L ) ) ;
60
60
}
61
61
62
62
[ Fact ( Skip = "Remove to run test" ) ]
63
63
public void One_million ( )
64
64
{
65
- Assert . Equal ( "one million" , Say . InEnglish ( 1000000 ) ) ;
65
+ Assert . Equal ( "one million" , Say . InEnglish ( 1000000L ) ) ;
66
66
}
67
67
68
68
[ Fact ( Skip = "Remove to run test" ) ]
69
69
public void One_million_two_thousand_three_hundred_forty_five ( )
70
70
{
71
- Assert . Equal ( "one million two thousand three hundred forty-five" , Say . InEnglish ( 1002345 ) ) ;
71
+ Assert . Equal ( "one million two thousand three hundred forty-five" , Say . InEnglish ( 1002345L ) ) ;
72
72
}
73
73
74
74
[ Fact ( Skip = "Remove to run test" ) ]
75
75
public void One_billion ( )
76
76
{
77
- Assert . Equal ( "one billion" , Say . InEnglish ( 1000000000 ) ) ;
77
+ Assert . Equal ( "one billion" , Say . InEnglish ( 1000000000L ) ) ;
78
78
}
79
79
80
80
[ Fact ( Skip = "Remove to run test" ) ]
81
81
public void A_big_number ( )
82
82
{
83
- Assert . Equal ( "nine hundred eighty-seven billion six hundred fifty-four million three hundred twenty-one thousand one hundred twenty-three" , Say . InEnglish ( 987654321123 ) ) ;
83
+ Assert . Equal ( "nine hundred eighty-seven billion six hundred fifty-four million three hundred twenty-one thousand one hundred twenty-three" , Say . InEnglish ( 987654321123L ) ) ;
84
84
}
85
85
86
86
[ Fact ( Skip = "Remove to run test" ) ]
87
87
public void Numbers_below_zero_are_out_of_range ( )
88
88
{
89
- Assert . Throws < ArgumentOutOfRangeException > ( ( ) => Say . InEnglish ( - 1 ) ) ;
89
+ Assert . Throws < ArgumentOutOfRangeException > ( ( ) => Say . InEnglish ( - 1L ) ) ;
90
90
}
91
91
92
92
[ Fact ( Skip = "Remove to run test" ) ]
93
93
public void Numbers_above_999_999_999_999_are_out_of_range ( )
94
94
{
95
- Assert . Throws < ArgumentOutOfRangeException > ( ( ) => Say . InEnglish ( 1000000000000 ) ) ;
95
+ Assert . Throws < ArgumentOutOfRangeException > ( ( ) => Say . InEnglish ( 1000000000000L ) ) ;
96
96
}
97
97
}
0 commit comments