public void Constructor_ParsesStringCorrectly(string iso8601String, int expectedDays, int expectedHours, int expectedMinutes, int expectedSeconds) { // Act var timeSpan = new TimeSpanIso8601(iso8601String); // Assert timeSpan.Value.Should().Be(new TimeSpan(expectedDays, expectedHours, expectedMinutes, expectedSeconds)); }
public void Constructor_ParsesStringCorrectly(string iso8601String, int expectedDays, int expectedHours, int expectedMinutes, int expectedSeconds) { // Act var timeSpan = new TimeSpanIso8601(iso8601String); // Assert var expectedValue = new TimeSpan(expectedDays, expectedHours, expectedMinutes, expectedSeconds); Assert.Equal(expectedValue, timeSpan.Value); }