Skip to content

Commit e38ab6f

Browse files
committed
Update RocDateTimeTest with new test case and reordering
Updated the test method `民國年字串解析` in `RocDateTimeTest`: - Added a new test case for input "民國101年02月29日" with expected date "2012/02/29". - Moved the `InlineData` attribute for the test case with input "民國貳十參年陸月玖日" and expected date "1934/06/09" to a different position.
1 parent 1959596 commit e38ab6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/TaiwanUtilities.UnitTests/RocDateTime/RocDateTimeTest.Parsing.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ partial class RocDateTimeTest
1414

1515
[Theory]
1616
[InlineData("民國貳參年陸月玖日", "1934/06/09")]
17-
[InlineData("民國貳十參年陸月玖日", "1934/06/09")]
18-
public static void 民國年字串解析(string input, string expectedDate)
17+
[InlineData("民國貳十參年陸月玖日", "1934/06/09")]
18+
[InlineData("民國101年02月29日", "2012/02/29")]
19+
public static void 民國年字串解析(string input, string expectedDate)
1920
{
2021
Assert.Equal(
2122
expected: DateTime.Parse(expectedDate),

0 commit comments

Comments
 (0)