logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class TimerFormatterServiceBehaviorTests

    Behavioral edge-case tests for Serenity.Timer.Domain.Services.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.

    Inheritance
    object
    TimerFormatterServiceBehaviorTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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_NineSeconds_PadsSeconds()

    Declaration
    public void FormatTimeInSeconds_NineSeconds_PadsSeconds()

    FormatTimeInSeconds_OneHour_ProducesQuirkOutput()

    Declaration
    public void FormatTimeInSeconds_OneHour_ProducesQuirkOutput()

    FormatTimeInSeconds_SubSecond_FloorsToZeroSeconds()

    Declaration
    public void FormatTimeInSeconds_SubSecond_FloorsToZeroSeconds()

    FormatTimeInSeconds_TwoMinutes_TriggersHourDivisorQuirk()

    Declaration
    public void FormatTimeInSeconds_TwoMinutes_TriggersHourDivisorQuirk()

    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_OmitsMinutesSegment()

    Declaration
    public void GetFormattedTime_HoursButZeroMinutes_OmitsMinutesSegment()

    GetFormattedTime_SecondsTenOrMore_NotPadded()

    Declaration
    public void GetFormattedTime_SecondsTenOrMore_NotPadded()
    In this article
    © 2026 Serenity. All Rights Reserved