logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class MusicBarTimeCalculatorBehaviorTests

    Additional edge-case coverage for MusicBarTimeCalculator beyond the happy-path cases in MusicBarTimeCalculatorTests.

    Inheritance
    object
    MusicBarTimeCalculatorBehaviorTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.MusicPlayer.Tests.Domain
    Assembly: Tests.dll
    Syntax
    public class MusicBarTimeCalculatorBehaviorTests

    Constructors

    MusicBarTimeCalculatorBehaviorTests()

    Declaration
    public MusicBarTimeCalculatorBehaviorTests()

    Methods

    BarToSeconds_InvalidBeatUnit_ReturnsZero()

    Declaration
    public void BarToSeconds_InvalidBeatUnit_ReturnsZero()

    BarToSeconds_InvalidBpm_ReturnsZero()

    Declaration
    public void BarToSeconds_InvalidBpm_ReturnsZero()

    BarToSeconds_LargeBar_ScalesLinearly()

    Declaration
    public void BarToSeconds_LargeBar_ScalesLinearly()

    BarToSeconds_NegativeBar_ClampsToZero()

    Declaration
    public void BarToSeconds_NegativeBar_ClampsToZero()

    BarToSeconds_SecondBar_IsOneBarLength()

    Declaration
    public void BarToSeconds_SecondBar_IsOneBarLength()

    SecondsPerBar_FourFour_At60Bpm_IsFourSeconds()

    Declaration
    public void SecondsPerBar_FourFour_At60Bpm_IsFourSeconds()

    SecondsPerBar_FractionalBpm_IsComputed()

    Declaration
    public void SecondsPerBar_FractionalBpm_IsComputed()

    SecondsPerBar_HalfNoteBeatUnit_ScalesUp()

    Declaration
    public void SecondsPerBar_HalfNoteBeatUnit_ScalesUp()

    SecondsPerBar_NegativeBeatUnit_ReturnsZero()

    Declaration
    public void SecondsPerBar_NegativeBeatUnit_ReturnsZero()

    SecondsPerBar_ThreeFour_At120Bpm_IsOnePointFive()

    Declaration
    public void SecondsPerBar_ThreeFour_At120Bpm_IsOnePointFive()

    SecondsPerBar_ZeroBeatsPerBar_ReturnsZero()

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