@@ -54,8 +54,16 @@ protected override void CreateSchema()
5454 CreateTable ( "DateTime" ) ;
5555 CreateTable ( "Double" ) ;
5656 CreateTable ( "Decimal" ) ;
57+
58+ base . CreateSchema ( ) ;
5759 }
5860
61+ /// <summary>
62+ /// This function creates the schema for our custom entities.
63+ /// If the SchemaExporter provided a mechanism to override the database
64+ /// type, this method would not be required.
65+ /// </summary>
66+ /// <param name="name"></param>
5967 private void CreateTable ( string name )
6068 {
6169 var sb = new StringBuilder ( ) ;
@@ -143,6 +151,14 @@ private string GetQualifiedName(string catalog, string schema, string name)
143151 }
144152 }
145153
154+ [ Test , TestCaseSource ( nameof ( GetTestCases ) ) ]
155+ public async Task TestNHDateTimeAsync ( CultureInfo from , CultureInfo to )
156+ {
157+ DateTime leapDay = new DateTime ( 2024 , 2 , 29 , new GregorianCalendar ( GregorianCalendarTypes . USEnglish ) ) ;
158+
159+ await ( PerformTestAsync < DateTime , NHDateTimeEntity > ( from , to , leapDay , ( expected , actual ) => Assert . AreEqual ( expected , actual ) ) ) ;
160+ }
161+
146162 [ Test , TestCaseSource ( nameof ( GetTestCases ) ) ]
147163 public async Task TestDateTimeAsync ( CultureInfo from , CultureInfo to )
148164 {
@@ -180,14 +196,8 @@ public async Task TestIntegerAsync(CultureInfo from, CultureInfo to)
180196
181197 private CultureInfo CurrentCulture
182198 {
183- get
184- {
185- return CultureInfo . CurrentCulture ;
186- }
187- set
188- {
189- CultureInfo . CurrentCulture = value ;
190- }
199+ get => CultureInfo . CurrentCulture ;
200+ set => CultureInfo . CurrentCulture = value ;
191201 }
192202
193203 public static object [ ] [ ] GetTestCases ( )
0 commit comments