@@ -5,24 +5,18 @@ import io.kotest.matchers.shouldBe
5
5
6
6
class LottoGameTest : FreeSpec (
7
7
{
8
- " LottoGame 생성" - {
9
- " 주어진 LottoNumbers 와 TicketType 을 가진 LottoGame 을 반환" {
10
- val numbers = LottoNumbers .from(listOf(1, 2, 3, 4, 5, 6))
11
- val ticketType = TicketType .Manual
12
- val ticket = LottoGame .of(numbers, ticketType)
8
+ " ManualLotto 생성" {
9
+ val numbers = LottoNumbers .from(listOf(1, 2, 3, 4, 5, 6))
10
+ val ticket = LottoGame .Manual (numbers)
13
11
14
- ticket.numbers shouldBe numbers
15
- ticket.type shouldBe ticketType
16
- }
12
+ ticket.numbers shouldBe numbers
17
13
}
18
14
19
- " LottoGame 출력" - {
20
- " LottoGame 의 numbers 필드를 문자열화 하여 반환" {
21
- val numbers = LottoNumbers .from(listOf(1, 2, 3, 4, 5, 6))
22
- val ticket = LottoGame .of(numbers, TicketType .Manual )
15
+ " AutoLotto 출력" {
16
+ val numbers = LottoNumbers .from(listOf(1, 2, 3, 4, 5, 6))
17
+ val ticket = LottoGame .Auto (numbers)
23
18
24
- ticket.toString() shouldBe numbers.toString()
25
- }
19
+ ticket.toString() shouldBe numbers.toString()
26
20
}
27
21
},
28
22
)
0 commit comments