From d1df7d6b339ba950592bb9f71dd2a2c1a478bf7f Mon Sep 17 00:00:00 2001 From: Andriy Svyryd Date: Thu, 12 Feb 2026 20:21:07 -0800 Subject: [PATCH] Fix some of the tests in DateTimeOffsetTranslationsCosmosTest that are now supported. --- .../DateTimeOffsetTranslationsCosmosTest.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/test/EFCore.Cosmos.FunctionalTests/Query/Translations/Temporal/DateTimeOffsetTranslationsCosmosTest.cs b/test/EFCore.Cosmos.FunctionalTests/Query/Translations/Temporal/DateTimeOffsetTranslationsCosmosTest.cs index 7462373cf05..9c3fe3b05c2 100644 --- a/test/EFCore.Cosmos.FunctionalTests/Query/Translations/Temporal/DateTimeOffsetTranslationsCosmosTest.cs +++ b/test/EFCore.Cosmos.FunctionalTests/Query/Translations/Temporal/DateTimeOffsetTranslationsCosmosTest.cs @@ -44,8 +44,7 @@ public override async Task Date() public override async Task Year() { - // Our persisted representation of DateTimeOffset (xxx+00:00) isn't supported by Cosmos (should be xxxZ). #35310 - await Assert.ThrowsAsync(() => base.Year()); + await base.Year(); AssertSql( """ @@ -78,8 +77,7 @@ public override async Task DayOfYear() public override async Task Day() { - // Our persisted representation of DateTimeOffset (xxx+00:00) isn't supported by Cosmos (should be xxxZ). #35310 - await Assert.ThrowsAsync(() => base.Day()); + await base.Day(); AssertSql( """ @@ -117,8 +115,7 @@ FROM root c public override async Task Second() { - // Our persisted representation of DateTimeOffset (xxx+00:00) isn't supported by Cosmos (should be xxxZ). #35310 - await Assert.ThrowsAsync(() => base.Second()); + await base.Second(); AssertSql( """ @@ -130,8 +127,7 @@ FROM root c public override async Task Millisecond() { - // Our persisted representation of DateTimeOffset (xxx+00:00) isn't supported by Cosmos (should be xxxZ). #35310 - await Assert.ThrowsAsync(() => base.Millisecond()); + await base.Millisecond(); AssertSql( """ @@ -143,8 +139,7 @@ FROM root c public override async Task Microsecond() { - // Our persisted representation of DateTimeOffset (xxx+00:00) isn't supported by Cosmos (should be xxxZ). #35310 - await Assert.ThrowsAsync(() => base.Microsecond()); + await base.Microsecond(); AssertSql( """