Example #1
0
 public void Fourteen()
 {
     Assert.That(Say.InEnglish(14L), Is.EqualTo("fourteen"));
 }
Example #2
0
 public void Zero()
 {
     Assert.Equal("zero", Say.InEnglish(0));
 }
Example #3
0
 public void Numbers_below_zero_are_out_of_range()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Say.InEnglish(-1));
 }
Example #4
0
 public void One_thousand()
 {
     Assert.Equal("one thousand", Say.InEnglish(1000));
 }
Example #5
0
 public void One_million_two_thousand_three_hundred_forty_five()
 {
     Assert.Equal("one million two thousand three hundred forty-five", Say.InEnglish(1002345));
 }
Example #6
0
 public void Twenty()
 {
     Assert.Equal("twenty", Say.InEnglish(20));
 }
Example #7
0
 public void One_hundred()
 {
     Assert.Equal("one hundred", Say.InEnglish(100));
 }
Example #8
0
 public void Zero()
 {
     Assert.That(Say.InEnglish(0L), Is.EqualTo("zero"));
 }
Example #9
0
 public void One_thousand_two_hundred_thirty_four()
 {
     Assert.That(Say.InEnglish(1234L), Is.EqualTo("one thousand two hundred thirty-four"));
 }
Example #10
0
 public void One_hundred_twenty_three()
 {
     Assert.That(Say.InEnglish(123L), Is.EqualTo("one hundred twenty-three"));
 }
Example #11
0
 public void One_thousand()
 {
     Assert.That(Say.InEnglish(1000L), Is.EqualTo("one thousand"));
 }
Example #12
0
 public void One_hundred()
 {
     Assert.That(Say.InEnglish(100L), Is.EqualTo("one hundred"));
 }
Example #13
0
 public void Twenty_two()
 {
     Assert.That(Say.InEnglish(22L), Is.EqualTo("twenty-two"));
 }
Example #14
0
 public void Twenty()
 {
     Assert.That(Say.InEnglish(20L), Is.EqualTo("twenty"));
 }
Example #15
0
 public void One()
 {
     Assert.Equal("one", Say.InEnglish(1));
 }
Example #16
0
 public void One_million_two()
 {
     Assert.That(Say.InEnglish(1000002L), Is.EqualTo("one million two"));
 }
Example #17
0
 public void Fourteen()
 {
     Assert.Equal("fourteen", Say.InEnglish(14));
 }
Example #18
0
 public void One_million_two_thousand_three_hundred_forty_five()
 {
     Assert.That(Say.InEnglish(1002345L), Is.EqualTo("one million two thousand three hundred forty-five"));
 }
Example #19
0
 public void Twenty_two()
 {
     Assert.Equal("twenty-two", Say.InEnglish(22));
 }
Example #20
0
 public void One_billion()
 {
     Assert.That(Say.InEnglish(1000000000L), Is.EqualTo("one billion"));
 }
Example #21
0
 public void One_hundred_twenty_three()
 {
     Assert.Equal("one hundred twenty-three", Say.InEnglish(123));
 }
Example #22
0
 public void Lower_bound()
 {
     Assert.That(() => Say.InEnglish(-1L), Throws.Exception);
 }
Example #23
0
 public void One_thousand_two_hundred_thirty_four()
 {
     Assert.Equal("one thousand two hundred thirty-four", Say.InEnglish(1234));
 }
Example #24
0
 public void Upper_bound()
 {
     Assert.That(() => Say.InEnglish(1000000000000L), Throws.Exception);
 }
Example #25
0
 public void One_billion()
 {
     Assert.Equal("one billion", Say.InEnglish(1000000000));
 }
Example #26
0
 public void Zero()
 {
     Console.WriteLine("In Zero Test.");
     Assert.Equal("zero", Say.InEnglish(0));
 }
Example #27
0
 public void A_big_number()
 {
     Assert.Equal("nine hundred eighty-seven billion six hundred fifty-four million three hundred twenty-one thousand one hundred twenty-three", Say.InEnglish(987654321123));
 }
Example #28
0
 public void One_million()
 {
     Assert.Equal("one million", Say.InEnglish(1000000L));
 }
Example #29
0
 public void Numbers_above_999_999_999_999_are_out_of_range()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Say.InEnglish(1000000000000));
 }
Example #30
0
 public void One()
 {
     Assert.That(Say.InEnglish(1L), Is.EqualTo("one"));
 }