Skip to content

Commit 8cabdc5

Browse files
committed
Add evaluation classes for CalDateTime
* Added `CalDateTimeEvaluator` * Added lightweight `CalDateTimeZoned` which is returned from `CalDateTimeEvaluator` methods * Updated existing `CalDateTime` comparion and arithmethic related methods to use `CalDateTimeEvaluator` * Added `Microsoft.Bcl.HashCode` for simplified HashCode generation with `netstandard2.x`
1 parent c656c3e commit 8cabdc5

File tree

7 files changed

+904
-130
lines changed

7 files changed

+904
-130
lines changed

Ical.Net.Tests/CalDateTimeTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public string ToStringTests(CalDateTime calDateTime, string format, IFormatProvi
149149
public static IEnumerable ToStringTestCases()
150150
{
151151
yield return new TestCaseData(new CalDateTime(2024, 8, 30, 10, 30, 0, tzId: "Pacific/Auckland"), "O", null)
152-
.Returns("2024-08-30T10:30:00.0000000+12:00 Pacific/Auckland")
152+
.Returns("2024-08-30T10:30:00.0000000 Pacific/Auckland")
153153
.SetName("Date and time with 'O' format arg, default culture");
154154

155155
yield return new TestCaseData(new CalDateTime(2024, 8, 30), "O", null)
@@ -158,7 +158,7 @@ public static IEnumerable ToStringTestCases()
158158

159159
yield return new TestCaseData(new CalDateTime(2024, 8, 30, 10, 30, 0, tzId: "Pacific/Auckland"), "O",
160160
CultureInfo.GetCultureInfo("fr-FR"))
161-
.Returns("2024-08-30T10:30:00.0000000+12:00 Pacific/Auckland")
161+
.Returns("2024-08-30T10:30:00.0000000 Pacific/Auckland")
162162
.SetName("Date and time with 'O' format arg, French culture");
163163

164164
yield return new TestCaseData(new CalDateTime(2024, 8, 30, 10, 30, 0, tzId: "Pacific/Auckland"),

0 commit comments

Comments
 (0)