Skip to content

Commit 396c4e4

Browse files
CopilotLazuliKao
andcommitted
Fix type mismatch in ClubAffairsReminderTest
Co-authored-by: LazuliKao <46601807+LazuliKao@users.noreply.github.com>
1 parent be02ff7 commit 396c4e4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/HuaJiBot.NET.UnitTest/ClubAffairsReminderTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ public void TestDayRange()
5252
{
5353
// Test that tomorrow calculation is correct
5454
var today = new DateTimeOffset(2024, 10, 21, 9, 0, 0, TimeSpan.FromHours(8));
55-
var tomorrow = today.Date.AddDays(1);
55+
var tomorrow = today.AddDays(1).Date;
5656
var dayAfterTomorrow = tomorrow.AddDays(1);
5757

58-
var expectedTomorrow = new DateTimeOffset(2024, 10, 22, 0, 0, 0, TimeSpan.FromHours(8));
59-
var expectedDayAfter = new DateTimeOffset(2024, 10, 23, 0, 0, 0, TimeSpan.FromHours(8));
58+
var expectedTomorrow = new DateTime(2024, 10, 22, 0, 0, 0);
59+
var expectedDayAfter = new DateTime(2024, 10, 23, 0, 0, 0);
6060

6161
Assert.That(tomorrow, Is.EqualTo(expectedTomorrow));
6262
Assert.That(dayAfterTomorrow, Is.EqualTo(expectedDayAfter));

0 commit comments

Comments
 (0)