public void WhenGivenNull_NullIsReturned() { var actual = ArgumentsBuilderExtension.GetArgumentFromNullableTimeSpanProperty(NullableTimeSpanProperty, null); Assert.That(actual, Is.Null); }
public void WhenGivenValue_FormatsProperly() { var actual = ArgumentsBuilderExtension.GetArgumentFromNullableTimeSpanProperty(NullableTimeSpanProperty, new TimeSpan(734, 18, 4)); Assert.That(actual, Is.EqualTo("--nullable-time-span 734h18m4s")); }