Skip to content

Commit 86c15a7

Browse files
committed
test: 移除重复的时间转换测试用例
删除TestUtcToUtcDateTime和TestUtcToLocalDateTime两个测试用例,因为它们的功能已被其他测试覆盖
1 parent e50f9f5 commit 86c15a7

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Tests/GameFrameX.Tests/Utility/UnitTestTime.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -141,23 +141,6 @@ public void TestTimestampToDateTime()
141141
Assert.IsType<DateTime>(localDateTime);
142142
}
143143

144-
[Fact]
145-
public void TestUtcToUtcDateTime()
146-
{
147-
var timestamp = 1704897045L; // 2024-01-10 14:30:45 UTC
148-
var dateTime = TimeHelper.UtcToUtcDateTime(timestamp);
149-
var expected = new DateTime(2024, 1, 10, 14, 30, 45, DateTimeKind.Utc);
150-
Assert.Equal(expected, dateTime);
151-
}
152-
153-
[Fact]
154-
public void TestUtcToLocalDateTime()
155-
{
156-
var timestamp = 1704897045L; // 2024-01-10 14:30:45 UTC
157-
var localDateTime = TimeHelper.UtcToLocalDateTime(timestamp);
158-
Assert.IsType<DateTime>(localDateTime);
159-
}
160-
161144
[Fact]
162145
public void TestUtcSecondsToLocalDateTime()
163146
{

0 commit comments

Comments
 (0)