logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class Vector3BehaviorTests

    Additional behavioral coverage for Serenity.ProceduralExpression.Domain.ValueObjects.Vector3 beyond Vector3Tests: general-case magnitude/normalize math, operator correctness, anti-commutativity of cross product, lerp midpoint, and hash-code inequality.

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

    Constructors

    Vector3BehaviorTests()

    Declaration
    public Vector3BehaviorTests()

    Methods

    Add_Commutative()

    Declaration
    public void Add_Commutative()

    Cross_IsAntiCommutative()

    Declaration
    public void Cross_IsAntiCommutative()

    Cross_ParallelVectors_IsZero()

    Declaration
    public void Cross_ParallelVectors_IsZero()

    Divide_ByTwo_HalvesComponents()

    Declaration
    public void Divide_ByTwo_HalvesComponents()

    Dot_GeneralCase_SumsProducts()

    Declaration
    public void Dot_GeneralCase_SumsProducts()

    Equals_NullObject_False()

    Declaration
    public void Equals_NullObject_False()

    GetHashCode_DifferentVectors_DifferByComponentShift()

    Declaration
    public void GetHashCode_DifferentVectors_DifferByComponentShift()

    Lerp_AtHalf_ReturnsMidpoint()

    Declaration
    public void Lerp_AtHalf_ReturnsMidpoint()

    Magnitude_GeneralCase_Is345Triangle()

    Declaration
    public void Magnitude_GeneralCase_Is345Triangle()

    Magnitude_Zero_IsZero()

    Declaration
    public void Magnitude_Zero_IsZero()

    MultiplyByZero_IsZero()

    Declaration
    public void MultiplyByZero_IsZero()

    Multiply_ScalarByVector_MatchesVectorByScalar()

    Declaration
    public void Multiply_ScalarByVector_MatchesVectorByScalar()

    Negate_FlipsAllSigns()

    Declaration
    public void Negate_FlipsAllSigns()

    Normalized_GeneralVector_HasUnitMagnitude()

    Declaration
    public void Normalized_GeneralVector_HasUnitMagnitude()

    Normalized_PreservesDirection()

    Declaration
    public void Normalized_PreservesDirection()

    Normalized_TinyBelowThreshold_ReturnsZero()

    Declaration
    public void Normalized_TinyBelowThreshold_ReturnsZero()

    OperatorEquals_DifferingZComponent_False()

    Declaration
    public void OperatorEquals_DifferingZComponent_False()

    OperatorNotEquals_Same_False()

    Declaration
    public void OperatorNotEquals_Same_False()

    SqrMagnitude_GeneralCase_SumOfSquares()

    Declaration
    public void SqrMagnitude_GeneralCase_SumOfSquares()

    Subtract_FromSelf_IsZero()

    Declaration
    public void Subtract_FromSelf_IsZero()

    ToString_UsesF3Format_CultureAgnostic()

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