logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class NumberUtilsTests

    Inheritance
    object
    NumberUtilsTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Shared.Tests.Utils
    Assembly: Tests.dll
    Syntax
    public class NumberUtilsTests

    Constructors

    NumberUtilsTests()

    Declaration
    public NumberUtilsTests()

    Methods

    CeilingToInt_Double_Should_HandleNegative()

    Declaration
    public void CeilingToInt_Double_Should_HandleNegative()

    CeilingToInt_Double_Should_ReturnInt()

    Declaration
    public void CeilingToInt_Double_Should_ReturnInt()

    CeilingToInt_Float_Should_HandleNegative()

    Declaration
    public void CeilingToInt_Float_Should_HandleNegative()

    CeilingToInt_Float_Should_ReturnInt()

    Declaration
    public void CeilingToInt_Float_Should_ReturnInt()

    Ceiling_Double_Should_HandleNegative()

    Declaration
    public void Ceiling_Double_Should_HandleNegative()

    Ceiling_Double_Should_ReturnCeiling()

    Declaration
    public void Ceiling_Double_Should_ReturnCeiling()

    Ceiling_Float_Should_HandleNegative()

    Declaration
    public void Ceiling_Float_Should_HandleNegative()

    Ceiling_Float_Should_ReturnCeiling()

    Declaration
    public void Ceiling_Float_Should_ReturnCeiling()

    Clamp_Should_ReturnMax_When_AboveRange()

    Declaration
    public void Clamp_Should_ReturnMax_When_AboveRange()

    Clamp_Should_ReturnMax_When_ValueEqualsMax()

    Declaration
    public void Clamp_Should_ReturnMax_When_ValueEqualsMax()

    Clamp_Should_ReturnMin_When_BelowRange()

    Declaration
    public void Clamp_Should_ReturnMin_When_BelowRange()

    Clamp_Should_ReturnMin_When_ValueEqualsMin()

    Declaration
    public void Clamp_Should_ReturnMin_When_ValueEqualsMin()

    Clamp_Should_ReturnValue_When_InRange()

    Declaration
    public void Clamp_Should_ReturnValue_When_InRange()

    DoubleToFloat_Should_Convert()

    Declaration
    public void DoubleToFloat_Should_Convert()

    FloatToDouble_Should_Convert()

    Declaration
    public void FloatToDouble_Should_Convert()

    FloorToInt_Double_Should_HandleNegative()

    Declaration
    public void FloorToInt_Double_Should_HandleNegative()

    FloorToInt_Double_Should_ReturnInt()

    Declaration
    public void FloorToInt_Double_Should_ReturnInt()

    FloorToInt_Float_Should_HandleNegative()

    Declaration
    public void FloorToInt_Float_Should_HandleNegative()

    FloorToInt_Float_Should_ReturnInt()

    Declaration
    public void FloorToInt_Float_Should_ReturnInt()

    Floor_Double_Should_HandleNegative()

    Declaration
    public void Floor_Double_Should_HandleNegative()

    Floor_Double_Should_ReturnFloor()

    Declaration
    public void Floor_Double_Should_ReturnFloor()

    Floor_Float_Should_HandleNegative()

    Declaration
    public void Floor_Float_Should_HandleNegative()

    Floor_Float_Should_ReturnFloor()

    Declaration
    public void Floor_Float_Should_ReturnFloor()

    Round_Decimals_Should_RoundCorrectly(float, int, float)

    Declaration
    public void Round_Decimals_Should_RoundCorrectly(float value, int decimals, float expected)
    Parameters
    Type Name Description
    float value
    int decimals
    float expected

    Round_Int_Should_HandleNegative()

    Declaration
    public void Round_Int_Should_HandleNegative()

    Round_Int_Should_HandleZero()

    Declaration
    public void Round_Int_Should_HandleZero()

    Round_Int_Should_RoundDown_When_FractionBelow5()

    Declaration
    public void Round_Int_Should_RoundDown_When_FractionBelow5()

    Round_Int_Should_RoundUp_When_FractionAbove5()

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