logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class DefaultServiceLocatorBehaviorTests

    Complementary behavioral tests for DefaultServiceLocator covering type-keying semantics, post-removal TryGet state, message content of guard exceptions, and replace flows.

    Inheritance
    object
    DefaultServiceLocatorBehaviorTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.ServiceLocator.Tests.Application
    Assembly: Tests.dll
    Syntax
    public class DefaultServiceLocatorBehaviorTests

    Constructors

    DefaultServiceLocatorBehaviorTests()

    Declaration
    public DefaultServiceLocatorBehaviorTests()

    Methods

    Contains_DoesNotThrow_WhenNothingRegistered()

    Declaration
    public void Contains_DoesNotThrow_WhenNothingRegistered()

    Get_Missing_ExceptionMessageNamesTheType()

    Declaration
    public void Get_Missing_ExceptionMessageNamesTheType()

    Get_ReturnsInstanceUsableThroughInterface()

    Declaration
    public void Get_ReturnsInstanceUsableThroughInterface()

    Operations_OnOneType_DoNotAffectAnotherType()

    Declaration
    public void Operations_OnOneType_DoNotAffectAnotherType()

    Register_Duplicate_ExceptionMessageNamesTheType()

    Declaration
    public void Register_Duplicate_ExceptionMessageNamesTheType()

    Register_KeyedByGenericArgument_ConcreteTypeNotRegisteredSeparately()

    Declaration
    public void Register_KeyedByGenericArgument_ConcreteTypeNotRegisteredSeparately()

    Register_Null_ArgumentNullExceptionUsesServiceParamName()

    Declaration
    public void Register_Null_ArgumentNullExceptionUsesServiceParamName()

    Register_SameInstanceUnderInterfaceAndConcrete_AreIndependentEntries()

    Declaration
    public void Register_SameInstanceUnderInterfaceAndConcrete_AreIndependentEntries()

    Remove_Missing_ExceptionMessageNamesTheType()

    Declaration
    public void Remove_Missing_ExceptionMessageNamesTheType()

    Replace_ViaRemoveThenRegister_GetReturnsNewImplementation()

    Declaration
    public void Replace_ViaRemoveThenRegister_GetReturnsNewImplementation()

    SetUp()

    Declaration
    public void SetUp()

    TryGet_AfterRemove_ReturnsFalseAndNull()

    Declaration
    public void TryGet_AfterRemove_ReturnsFalseAndNull()

    TryGet_NonGeneric_MatchesTheGenericOverload()

    Declaration
    public void TryGet_NonGeneric_MatchesTheGenericOverload()

    TryGet_NonGeneric_ResolvesUnderTheRegisteredContractNotTheConcreteType()

    Declaration
    public void TryGet_NonGeneric_ResolvesUnderTheRegisteredContractNotTheConcreteType()

    TryGet_NonGeneric_ReturnsFalseForANullType()

    Declaration
    public void TryGet_NonGeneric_ReturnsFalseForANullType()

    TryGet_NonGeneric_ReturnsFalseForAValueTypeRatherThanThrowing()

    Declaration
    public void TryGet_NonGeneric_ReturnsFalseForAValueTypeRatherThanThrowing()

    TryGet_NonGeneric_ReturnsFalseForAnUnregisteredType()

    Declaration
    public void TryGet_NonGeneric_ReturnsFalseForAnUnregisteredType()

    TryGet_RegisteredService_OutParamIsUsableThroughInterface()

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