File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/Tests/Tests/CommonOptions/DateMath Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,17 @@ public void ImplicitConversionFromNullNullableDateTime()
22
22
dateMath . Should ( ) . BeNull ( ) ;
23
23
}
24
24
25
+ [ U ] // F# backticks would be great in C# :)
26
+ public void ImplicitConversionFromDefaultDateTimeIsNotNullButEmptyString ( )
27
+ {
28
+ // in 6.x DateMath is backed by a DateTime instance
29
+ // for 7.x we will adress this
30
+ DateTime nullableDateTime = default ;
31
+ Nest . DateMath dateMath = nullableDateTime ;
32
+ dateMath . Should ( ) . NotBeNull ( ) ;
33
+ dateMath . ToString ( ) . Should ( ) . BeEmpty ( ) ;
34
+ }
35
+
25
36
[ U ]
26
37
public void ImplicitConversionFromDateMathString ( )
27
38
{
@@ -38,4 +49,5 @@ public void ImplicitConversionFromNullableDateTimeWithValue()
38
49
dateMath . Should ( ) . NotBeNull ( ) ;
39
50
}
40
51
}
52
+
41
53
}
You can’t perform that action at this time.
0 commit comments