logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AchievementToastActionTests

    PlayMode tests for AchievementToastAction: the popup an unlock raises, the setting that suppresses it, and the two ordinary states — an unknown achievement and an uninstalled module — in which it must do nothing at all rather than fail.

    Inheritance
    object
    AchievementToastActionTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityAchievements.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class AchievementToastActionTests
    Remarks

    The action resolves its collaborators through ServiceLocatorBridge, so every test clears the static bridge on both ends; leaving one registered leaks into the next suite.

    Constructors

    AchievementToastActionTests()

    Declaration
    public AchievementToastActionTests()

    Methods

    Execute_UnknownAchievement_DispatchesNothingAndDoesNotThrow()

    Declaration
    public void Execute_UnknownAchievement_DispatchesNothingAndDoesNotThrow()

    Execute_Unlock_DispatchesAToastCarryingTheAchievementsNameKey()

    Declaration
    public void Execute_Unlock_DispatchesAToastCarryingTheAchievementsNameKey()

    Execute_WithNoAchievementModuleInstalled_DoesNothingAndDoesNotThrow()

    Declaration
    public void Execute_WithNoAchievementModuleInstalled_DoesNothingAndDoesNotThrow()

    Execute_WithNoDispatcherInTheLocator_WarnsOnce()

    Declaration
    public void Execute_WithNoDispatcherInTheLocator_WarnsOnce()

    Execute_WithToastsSwitchedOff_DispatchesNothing()

    Declaration
    public void Execute_WithToastsSwitchedOff_DispatchesNothing()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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