@@ -513,7 +513,7 @@ public void Parse_ComplexExpression_MultipleOperationsWithRounding()
513
513
}
514
514
515
515
[ Fact ]
516
- public void Parse_WithTimeZoneInfo_Now_ReturnsCurrentTimeInSpecifiedTimezone ( )
516
+ public void ParseTimeZone_Now_ReturnsCurrentTimeInSpecifiedTimezone ( )
517
517
{
518
518
var utcTimeZone = TimeZoneInfo . Utc ;
519
519
const string expression = "now" ;
@@ -536,7 +536,7 @@ public void Parse_WithTimeZoneInfo_Now_ReturnsCurrentTimeInSpecifiedTimezone()
536
536
[ InlineData ( "UTC" , 0 ) ]
537
537
[ InlineData ( "US/Eastern" , - 5 ) ] // EST offset (not considering DST for this test)
538
538
[ InlineData ( "US/Pacific" , - 8 ) ] // PST offset (not considering DST for this test)
539
- public void Parse_WithTimeZoneInfo_Now_ReturnsCorrectTimezone ( string timeZoneId , int expectedOffsetHours )
539
+ public void ParseTimeZone_Now_ReturnsCorrectTimezone ( string timeZoneId , int expectedOffsetHours )
540
540
{
541
541
var timeZone = TimeZoneInfo . FindSystemTimeZoneById ( timeZoneId ) ;
542
542
const string expression = "now" ;
@@ -553,7 +553,7 @@ public void Parse_WithTimeZoneInfo_Now_ReturnsCorrectTimezone(string timeZoneId,
553
553
}
554
554
555
555
[ Fact ]
556
- public void Parse_WithTimeZoneInfo_ExplicitDateWithoutTimezone_UsesSpecifiedTimezone ( )
556
+ public void ParseTimeZone_ExplicitDateWithoutTimezone_UsesSpecifiedTimezone ( )
557
557
{
558
558
var easternTimeZone = TimeZoneInfo . FindSystemTimeZoneById ( "US/Eastern" ) ;
559
559
const string expression = "2023-06-15T14:30:00||" ;
@@ -578,7 +578,7 @@ public void Parse_WithTimeZoneInfo_ExplicitDateWithoutTimezone_UsesSpecifiedTime
578
578
}
579
579
580
580
[ Fact ]
581
- public void Parse_WithTimeZoneInfo_ExplicitDateWithTimezone_PreservesOriginalTimezone ( )
581
+ public void ParseTimeZone_ExplicitDateWithTimezone_PreservesOriginalTimezone ( )
582
582
{
583
583
var pacificTimeZone = TimeZoneInfo . FindSystemTimeZoneById ( "US/Pacific" ) ;
584
584
const string expression = "2023-06-15T14:30:00+05:00||" ; // Explicit +05:00 timezone
@@ -606,7 +606,7 @@ public void Parse_WithTimeZoneInfo_ExplicitDateWithTimezone_PreservesOriginalTim
606
606
[ InlineData ( "now+6h" , 6 ) ]
607
607
[ InlineData ( "now-2h" , - 2 ) ]
608
608
[ InlineData ( "now+24h" , 24 ) ]
609
- public void Parse_WithTimeZoneInfo_HourOperations_ReturnsCorrectResult ( string expression , int hours )
609
+ public void ParseTimeZone_HourOperations_ReturnsCorrectResult ( string expression , int hours )
610
610
{
611
611
var utcTimeZone = TimeZoneInfo . Utc ;
612
612
@@ -632,7 +632,7 @@ public void Parse_WithTimeZoneInfo_HourOperations_ReturnsCorrectResult(string ex
632
632
[ InlineData ( "now/h" , true ) ]
633
633
[ InlineData ( "now/M" , false ) ]
634
634
[ InlineData ( "now/M" , true ) ]
635
- public void Parse_WithTimeZoneInfo_RoundingOperations_ReturnsCorrectResult ( string expression , bool isUpperLimit )
635
+ public void ParseTimeZone_RoundingOperations_ReturnsCorrectResult ( string expression , bool isUpperLimit )
636
636
{
637
637
var centralTimeZone = TimeZoneInfo . FindSystemTimeZoneById ( "US/Central" ) ;
638
638
@@ -679,7 +679,7 @@ public void Parse_WithTimeZoneInfo_RoundingOperations_ReturnsCorrectResult(strin
679
679
}
680
680
681
681
[ Fact ]
682
- public void TryParse_WithTimeZoneInfo_ValidExpression_ReturnsTrue ( )
682
+ public void TryParseTimeZone_ValidExpression_ReturnsTrue ( )
683
683
{
684
684
var mountainTimeZone = TimeZoneInfo . FindSystemTimeZoneById ( "US/Mountain" ) ;
685
685
const string expression = "now+2d" ;
@@ -700,7 +700,7 @@ public void TryParse_WithTimeZoneInfo_ValidExpression_ReturnsTrue()
700
700
}
701
701
702
702
[ Fact ]
703
- public void TryParse_WithTimeZoneInfo_InvalidExpression_ReturnsFalse ( )
703
+ public void TryParseTimeZone_InvalidExpression_ReturnsFalse ( )
704
704
{
705
705
var utcTimeZone = TimeZoneInfo . Utc ;
706
706
const string expression = "invalid_expression" ;
@@ -717,7 +717,7 @@ public void TryParse_WithTimeZoneInfo_InvalidExpression_ReturnsFalse()
717
717
}
718
718
719
719
[ Fact ]
720
- public void Parse_WithTimeZoneInfo_ComplexExpression_WorksCorrectly ( )
720
+ public void ParseTimeZone_ComplexExpression_WorksCorrectly ( )
721
721
{
722
722
var utcTimeZone = TimeZoneInfo . Utc ;
723
723
const string expression = "now+1M-2d+3h/h" ;
@@ -739,7 +739,7 @@ public void Parse_WithTimeZoneInfo_ComplexExpression_WorksCorrectly()
739
739
}
740
740
741
741
[ Fact ]
742
- public void Parse_WithTimeZoneInfo_NullTimeZone_ThrowsArgumentNullException ( )
742
+ public void ParseTimeZone_NullTimeZone_ThrowsArgumentNullException ( )
743
743
{
744
744
const string expression = "now" ;
745
745
@@ -749,7 +749,7 @@ public void Parse_WithTimeZoneInfo_NullTimeZone_ThrowsArgumentNullException()
749
749
}
750
750
751
751
[ Fact ]
752
- public void TryParse_WithTimeZoneInfo_NullTimeZone_ThrowsArgumentNullException ( )
752
+ public void TryParseTimeZone_NullTimeZone_ThrowsArgumentNullException ( )
753
753
{
754
754
const string expression = "now" ;
755
755
0 commit comments