public void a_double_value_representing_seconds_shows_as_seconds_after_conversion() { IValueConverter converter = new SliderValueInSecondsToReadableTimeFormatConverter(); var convertedText = (string)converter.Convert(15d, null, null, null); Assert.That(convertedText, Is.EqualTo("Every 15 seconds")); }
public void a_double_representing_hours_will_convert_to_minute_display_after_conversion() { IValueConverter converter = new SliderValueInSecondsToReadableTimeFormatConverter(); var convertedText = (string)converter.Convert((3615d), null, null, null); Assert.That(convertedText, Is.EqualTo("Every 60 minutes and 15 seconds")); }
public void a_double_value_representing_seconds_shows_as_seconds_after_conversion() { IValueConverter converter = new SliderValueInSecondsToReadableTimeFormatConverter(); var convertedText = (string) converter.Convert(15d, null, null, null); Assert.That(convertedText, Is.EqualTo("Every 15 seconds")); }
public void a_double_representing_hours_will_convert_to_minute_display_after_conversion() { IValueConverter converter = new SliderValueInSecondsToReadableTimeFormatConverter(); var convertedText = (string) converter.Convert((3615d), null, null, null); Assert.That(convertedText, Is.EqualTo("Every 60 minutes and 15 seconds")); }