From 86a3e7a857254490cfe6cdfd4929ed371ecfa5a5 Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Tue, 1 Oct 2024 14:42:03 +0300 Subject: [PATCH] chg - Don't test days --- Type: chg Breaking: False Doc Required: False Backport Required: False Part: 1/1 --- VisualCard.Tests/Durations/DurationParseTests.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/VisualCard.Tests/Durations/DurationParseTests.cs b/VisualCard.Tests/Durations/DurationParseTests.cs index 12523cf..d72823b 100644 --- a/VisualCard.Tests/Durations/DurationParseTests.cs +++ b/VisualCard.Tests/Durations/DurationParseTests.cs @@ -87,10 +87,9 @@ public void ParseDuration() { var span = VcardCommonTools.GetDurationSpan("P2Y10M15DT10H30M20S"); - // We can't test against result because it's uninferrable due to CPU timings. + // We can't test against result and days because it's uninferrable due to CPU timings. span.result.ShouldNotBe(new()); span.span.ShouldNotBe(new()); - span.span.Days.ShouldBe(1048); span.span.Hours.ShouldBe(10); span.span.Minutes.ShouldBe(30); span.span.Seconds.ShouldBe(20); @@ -101,10 +100,9 @@ public void ParseNegativeDuration() { var span = VcardCommonTools.GetDurationSpan("-P2Y10M15DT10H30M20S"); - // We can't test against result because it's uninferrable due to CPU timings. + // We can't test against result and days because it's uninferrable due to CPU timings. span.result.ShouldNotBe(new()); span.span.ShouldNotBe(new()); - span.span.Days.ShouldBe(-1050); span.span.Hours.ShouldBe(-10); span.span.Minutes.ShouldBe(-30); span.span.Seconds.ShouldBe(-20);