|
| 1 | +BeforeAll { |
| 2 | + . "./LineUp.ps1" |
| 3 | +} |
| 4 | + |
| 5 | +Describe "LineUp test cases" { |
| 6 | + It "format smallest non-exceptional ordinal numeral 4" { |
| 7 | + $got = Get-LineUp -Name "Gianna" -Number 4 |
| 8 | + $expect = "Gianna, you are the 4th customer we serve today. Thank you!" |
| 9 | + |
| 10 | + $got | Should -BeExactly $expect |
| 11 | + } |
| 12 | + |
| 13 | + It "format greatest single digit non-exceptional ordinal numeral 9" { |
| 14 | + $got = Get-LineUp -Name "Maarten" -Number 9 |
| 15 | + $expect = "Maarten, you are the 9th customer we serve today. Thank you!" |
| 16 | + |
| 17 | + $got | Should -BeExactly $expect |
| 18 | + } |
| 19 | + |
| 20 | + It "format non-exceptional ordinal numeral 5" { |
| 21 | + $got = Get-LineUp -Name "Petronila" -Number 5 |
| 22 | + $expect = "Petronila, you are the 5th customer we serve today. Thank you!" |
| 23 | + |
| 24 | + $got | Should -BeExactly $expect |
| 25 | + } |
| 26 | + |
| 27 | + It "format non-exceptional ordinal numeral 6" { |
| 28 | + $got = Get-LineUp -Name "Attakullakulla" -Number 6 |
| 29 | + $expect = "Attakullakulla, you are the 6th customer we serve today. Thank you!" |
| 30 | + |
| 31 | + $got | Should -BeExactly $expect |
| 32 | + } |
| 33 | + |
| 34 | + It "format non-exceptional ordinal numeral 7" { |
| 35 | + $got = Get-LineUp -Name "Kate" -Number 7 |
| 36 | + $expect = "Kate, you are the 7th customer we serve today. Thank you!" |
| 37 | + |
| 38 | + $got | Should -BeExactly $expect |
| 39 | + } |
| 40 | + |
| 41 | + It "format non-exceptional ordinal numeral 8" { |
| 42 | + $got = Get-LineUp -Name "Maximiliano" -Number 8 |
| 43 | + $expect = "Maximiliano, you are the 8th customer we serve today. Thank you!" |
| 44 | + |
| 45 | + $got | Should -BeExactly $expect |
| 46 | + } |
| 47 | + |
| 48 | + It "format exceptional ordinal numeral 1" { |
| 49 | + $got = Get-LineUp -Name "Mary" -Number 1 |
| 50 | + $expect = "Mary, you are the 1st customer we serve today. Thank you!" |
| 51 | + |
| 52 | + $got | Should -BeExactly $expect |
| 53 | + } |
| 54 | + |
| 55 | + It "format exceptional ordinal numeral 2" { |
| 56 | + $got = Get-LineUp -Name "Haruto" -Number 2 |
| 57 | + $expect = "Haruto, you are the 2nd customer we serve today. Thank you!" |
| 58 | + |
| 59 | + $got | Should -BeExactly $expect |
| 60 | + } |
| 61 | + |
| 62 | + It "format exceptional ordinal numeral 3" { |
| 63 | + $got = Get-LineUp -Name "Henriette" -Number 3 |
| 64 | + $expect = "Henriette, you are the 3rd customer we serve today. Thank you!" |
| 65 | + |
| 66 | + $got | Should -BeExactly $expect |
| 67 | + } |
| 68 | + |
| 69 | + It "format smallest two digit non-exceptional ordinal numeral 10" { |
| 70 | + $got = Get-LineUp -Name "Alvarez" -Number 10 |
| 71 | + $expect = "Alvarez, you are the 10th customer we serve today. Thank you!" |
| 72 | + |
| 73 | + $got | Should -BeExactly $expect |
| 74 | + } |
| 75 | + |
| 76 | + It "format non-exceptional ordinal numeral 11" { |
| 77 | + $got = Get-LineUp -Name "Jacqueline" -Number 11 |
| 78 | + $expect = "Jacqueline, you are the 11th customer we serve today. Thank you!" |
| 79 | + |
| 80 | + $got | Should -BeExactly $expect |
| 81 | + } |
| 82 | + |
| 83 | + It "format non-exceptional ordinal numeral 12" { |
| 84 | + $got = Get-LineUp -Name "Juan" -Number 12 |
| 85 | + $expect = "Juan, you are the 12th customer we serve today. Thank you!" |
| 86 | + |
| 87 | + $got | Should -BeExactly $expect |
| 88 | + } |
| 89 | + |
| 90 | + It "format non-exceptional ordinal numeral 13" { |
| 91 | + $got = Get-LineUp -Name "Patricia" -Number 13 |
| 92 | + $expect = "Patricia, you are the 13th customer we serve today. Thank you!" |
| 93 | + |
| 94 | + $got | Should -BeExactly $expect |
| 95 | + } |
| 96 | + |
| 97 | + It "format exceptional ordinal numeral 21" { |
| 98 | + $got = Get-LineUp -Name "Washi" -Number 21 |
| 99 | + $expect = "Washi, you are the 21st customer we serve today. Thank you!" |
| 100 | + |
| 101 | + $got | Should -BeExactly $expect |
| 102 | + } |
| 103 | + |
| 104 | + It "format exceptional ordinal numeral 62" { |
| 105 | + $got = Get-LineUp -Name "Nayra" -Number 62 |
| 106 | + $expect = "Nayra, you are the 62nd customer we serve today. Thank you!" |
| 107 | + |
| 108 | + $got | Should -BeExactly $expect |
| 109 | + } |
| 110 | + |
| 111 | + It "format exceptional ordinal numeral 100" { |
| 112 | + $got = Get-LineUp -Name "John" -Number 100 |
| 113 | + $expect = "John, you are the 100th customer we serve today. Thank you!" |
| 114 | + |
| 115 | + $got | Should -BeExactly $expect |
| 116 | + } |
| 117 | + |
| 118 | + It "format exceptional ordinal numeral 101" { |
| 119 | + $got = Get-LineUp -Name "Zeinab" -Number 101 |
| 120 | + $expect = "Zeinab, you are the 101st customer we serve today. Thank you!" |
| 121 | + |
| 122 | + $got | Should -BeExactly $expect |
| 123 | + } |
| 124 | + |
| 125 | + It "format non-exceptional ordinal numeral 112" { |
| 126 | + $got = Get-LineUp -Name "Knud" -Number 112 |
| 127 | + $expect = "Knud, you are the 112th customer we serve today. Thank you!" |
| 128 | + |
| 129 | + $got | Should -BeExactly $expect |
| 130 | + } |
| 131 | + |
| 132 | + It "format exceptional ordinal numeral 123" { |
| 133 | + $got = Get-LineUp -Name "Yma" -Number 123 |
| 134 | + $expect = "Yma, you are the 123rd customer we serve today. Thank you!" |
| 135 | + |
| 136 | + $got | Should -BeExactly $expect |
| 137 | + } |
| 138 | +} |
0 commit comments