@@ -2,7 +2,7 @@ namespace Microsoft.EntityFrameworkCore.Query;
22
33#nullable disable
44
5- public class AdHocJsonQueryNpgsqlTest : AdHocJsonQueryTestBase
5+ public class AdHocJsonQueryNpgsqlTest : AdHocJsonQueryRelationalTestBase
66{
77 protected override ITestStoreFactory TestStoreFactory
88 => NpgsqlTestStoreFactory . Instance ;
@@ -296,7 +296,7 @@ public class TypesJsonEntity
296296 public TimeSpan Interval { get ; set ; }
297297 }
298298
299- #region 34960
299+ #region Problematc tests (Unspecified DateTime)
300300
301301 // These tests use a model with a non-UTC DateTime, which isn't supported in PG's timestamp with time zone
302302
@@ -309,12 +309,6 @@ public override Task Try_project_collection_but_JSON_is_entity()
309309 public override Task Try_project_reference_but_JSON_is_collection ( )
310310 => Assert . ThrowsAsync < ArgumentException > ( ( ) => base . Try_project_reference_but_JSON_is_collection ( ) ) ;
311311
312- #endregion 34960
313-
314- #region 34293
315-
316- // These tests use a model with a non-UTC DateTime, which isn't supported in PG's timestamp with time zone
317-
318312 public override Task Project_entity_with_optional_json_entity_owned_by_required_json ( )
319313 => Assert . ThrowsAsync < ArgumentException > ( ( ) => base . Project_entity_with_optional_json_entity_owned_by_required_json ( ) ) ;
320314
@@ -324,7 +318,37 @@ public override Task Project_required_json_entity()
324318 public override Task Project_optional_json_entity_owned_by_required_json_entity ( )
325319 => Assert . ThrowsAsync < ArgumentException > ( ( ) => base . Project_optional_json_entity_owned_by_required_json_entity ( ) ) ;
326320
327- #endregion 34293
321+ public override Task Project_missing_required_scalar ( bool async )
322+ => Assert . ThrowsAsync < ArgumentException > ( ( ) => base . Project_missing_required_scalar ( async) ) ;
323+
324+ public override Task Project_nested_json_entity_with_missing_scalars ( bool async )
325+ => Assert . ThrowsAsync < ArgumentException > ( ( ) => base . Project_nested_json_entity_with_missing_scalars ( async) ) ;
326+
327+ public override Task Project_null_required_scalar ( bool async )
328+ => Assert . ThrowsAsync < ArgumentException > ( ( ) => base . Project_null_required_scalar ( async) ) ;
329+
330+ public override Task Project_root_entity_with_missing_required_navigation ( bool async )
331+ => Assert . ThrowsAsync < ArgumentException > ( ( ) => base . Project_root_entity_with_missing_required_navigation ( async) ) ;
332+
333+ public override Task Project_root_entity_with_null_required_navigation ( bool async )
334+ => Assert . ThrowsAsync < ArgumentException > ( ( ) => base . Project_root_entity_with_null_required_navigation ( async) ) ;
335+
336+ public override Task Project_root_with_missing_scalars ( bool async )
337+ => Assert . ThrowsAsync < ArgumentException > ( ( ) => base . Project_root_with_missing_scalars ( async) ) ;
338+
339+ public override Task Project_top_level_json_entity_with_missing_scalars ( bool async )
340+ => Assert . ThrowsAsync < ArgumentException > ( ( ) => base . Project_top_level_json_entity_with_missing_scalars ( async) ) ;
341+
342+ public override Task Project_missing_required_navigation ( bool async )
343+ => Task . CompletedTask ; // Different exception expected in the base implementation
344+
345+ public override Task Project_null_required_navigation ( bool async )
346+ => Task . CompletedTask ; // Different exception expected in the base implementation
347+
348+ public override Task Project_top_level_entity_with_null_value_required_scalars ( bool async )
349+ => Task . CompletedTask ; // Different exception expected in the base implementation
350+
351+ #endregion Problematc tests (Unspecified DateTime)
328352
329353 protected void AssertSql ( params string [ ] expected )
330354 => TestSqlLoggerFactory . AssertBaseline ( expected ) ;
0 commit comments