Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }