Revize cf35739b
Přidáno uživatelem Eliška Mourycová před více než 3 roky(ů)
Server/ServerApp/DataDownload/Date.cs | ||
---|---|---|
12 | 12 |
public uint Year { get; } |
13 | 13 |
public Date(uint month, uint year) |
14 | 14 |
{ |
15 |
if (month == 0) |
|
16 |
throw new ArgumentOutOfRangeException("month", "Month must be positive and not zero."); |
|
15 |
if (month == 0 || month > 12)
|
|
16 |
throw new ArgumentOutOfRangeException("month", "Month must be positive and not zero and less or equal to 12.");
|
|
17 | 17 |
this.Month = month; |
18 | 18 |
this.Year = year; |
19 | 19 |
} |
Také k dispozici: Unified diff
Refs #9051, #9050. Added more tests + fixed some bugs revealed by the tests.