Class TimerFormatterServiceBehaviorTests
Behavioral edge-case tests for TimerFormatterService.
All expected values are built from the same primitives the production code
uses (.ToString(), NumberUtils.Floor) so assertions stay
culture-agnostic on runners with a comma decimal separator.
Inherited Members
Namespace: Serenity.Timer.Tests.Domain
Assembly: Tests.dll
Syntax
public class TimerFormatterServiceBehaviorTests
Constructors
TimerFormatterServiceBehaviorTests()
Declaration
public TimerFormatterServiceBehaviorTests()
Methods
FormatTimeInSeconds_ExactlyOneMinute_ShowsMinutesAndZeroSeconds()
Declaration
public void FormatTimeInSeconds_ExactlyOneMinute_ShowsMinutesAndZeroSeconds()
FormatTimeInSeconds_HoursMinutesAndSeconds_DecomposesLikeAClock()
Declaration
public void FormatTimeInSeconds_HoursMinutesAndSeconds_DecomposesLikeAClock()
FormatTimeInSeconds_JustBelowOneHour_ShowsMinutesAndSeconds()
Declaration
public void FormatTimeInSeconds_JustBelowOneHour_ShowsMinutesAndSeconds()
FormatTimeInSeconds_NineSeconds_PadsSeconds()
Declaration
public void FormatTimeInSeconds_NineSeconds_PadsSeconds()
FormatTimeInSeconds_OneHour_ShowsAllThreeSegments()
Declaration
public void FormatTimeInSeconds_OneHour_ShowsAllThreeSegments()
FormatTimeInSeconds_SubSecond_FloorsToZeroSeconds()
Declaration
public void FormatTimeInSeconds_SubSecond_FloorsToZeroSeconds()
FormatTimeInSeconds_TwoMinutes_ShowsMinutesAndZeroSeconds()
Declaration
public void FormatTimeInSeconds_TwoMinutes_ShowsMinutesAndZeroSeconds()
GetFormattedHours_LargeValue_NoPaddingNoTruncation()
Declaration
public void GetFormattedHours_LargeValue_NoPaddingNoTruncation()
GetFormattedHours_Negative_ReturnsRawToString()
Declaration
public void GetFormattedHours_Negative_ReturnsRawToString()
GetFormattedMilliseconds_ShortFraction_TakesCatchBranchAppendingZeros()
Declaration
public void GetFormattedMilliseconds_ShortFraction_TakesCatchBranchAppendingZeros()
GetFormattedMilliseconds_ThreeDecimalDigits_TakesSubstringBranch()
Declaration
public void GetFormattedMilliseconds_ThreeDecimalDigits_TakesSubstringBranch()
GetFormattedMilliseconds_TrySuccess_StartsWithSeparatorNotDigit()
Declaration
public void GetFormattedMilliseconds_TrySuccess_StartsWithSeparatorNotDigit()
GetFormattedMilliseconds_WholeNumberZero_AppendsSeparatorAndZeros()
Declaration
public void GetFormattedMilliseconds_WholeNumberZero_AppendsSeparatorAndZeros()
GetFormattedMilliseconds_WholeNumber_AppendsDefaultSeparatorAndZeros()
Declaration
public void GetFormattedMilliseconds_WholeNumber_AppendsDefaultSeparatorAndZeros()
GetFormattedMilliseconds_WholeNumber_UsesCustomSeparatorInCatch()
Declaration
public void GetFormattedMilliseconds_WholeNumber_UsesCustomSeparatorInCatch()
GetFormattedMinutes_LargeValue_NoPadding()
Declaration
public void GetFormattedMinutes_LargeValue_NoPadding()
GetFormattedMinutes_Negative_PrependsZeroBeforeSign()
Declaration
public void GetFormattedMinutes_Negative_PrependsZeroBeforeSign()
GetFormattedMinutes_Nine_PadsWithZero()
Declaration
public void GetFormattedMinutes_Nine_PadsWithZero()
GetFormattedSeconds_ExactlyTen_NoPadding()
Declaration
public void GetFormattedSeconds_ExactlyTen_NoPadding()
GetFormattedSeconds_FloorsFractionalPart()
Declaration
public void GetFormattedSeconds_FloorsFractionalPart()
GetFormattedSeconds_JustBelowTen_PadsWithZero()
Declaration
public void GetFormattedSeconds_JustBelowTen_PadsWithZero()
GetFormattedSeconds_LargeValue_FloorsAndNoPadding()
Declaration
public void GetFormattedSeconds_LargeValue_FloorsAndNoPadding()
GetFormattedSeconds_Negative_PrependsZeroBeforeFlooredSign()
Declaration
public void GetFormattedSeconds_Negative_PrependsZeroBeforeFlooredSign()
GetFormattedTime_AllZero_SecondsOnlyPadded()
Declaration
public void GetFormattedTime_AllZero_SecondsOnlyPadded()
GetFormattedTime_HoursButZeroMinutes_KeepsMinutesSegment()
Declaration
public void GetFormattedTime_HoursButZeroMinutes_KeepsMinutesSegment()
GetFormattedTime_SecondsTenOrMore_NotPadded()
Declaration
public void GetFormattedTime_SecondsTenOrMore_NotPadded()