logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AchievementDomainTests

    Tests for the achievement value objects and the definition entity: identity equality, constructor validation, the boolean/progressive split and the copy helpers the store relies on to attach a screenshot without losing the unlock date.

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

    Constructors

    AchievementDomainTests()

    Declaration
    public AchievementDomainTests()

    Methods

    AchievementId_CastsRoundTrip()

    Declaration
    public void AchievementId_CastsRoundTrip()

    AchievementId_EmptyValue_IsNotValid()

    Declaration
    public void AchievementId_EmptyValue_IsNotValid()

    AchievementId_EqualityIsOrdinal()

    Declaration
    public void AchievementId_EqualityIsOrdinal()

    AchievementId_NullValue_Throws()

    Declaration
    public void AchievementId_NullValue_Throws()

    Definition_InvalidId_Throws()

    Declaration
    public void Definition_InvalidId_Throws()

    Definition_NegativePointsAndTarget_ClampToZero()

    Declaration
    public void Definition_NegativePointsAndTarget_ClampToZero()

    Definition_NullNameKey_Throws()

    Declaration
    public void Definition_NullNameKey_Throws()

    Definition_ProgressTargetAboveZero_IsProgressive()

    Declaration
    public void Definition_ProgressTargetAboveZero_IsProgressive()

    PlatformMapping_Empty_NamesNoPlatform()

    Declaration
    public void PlatformMapping_Empty_NamesNoPlatform()

    PlatformMapping_WithSteamName_NamesAPlatform()

    Declaration
    public void PlatformMapping_WithSteamName_NamesAPlatform()

    Progress_BooleanTarget_ReadsCompleteOncePositive()

    Declaration
    public void Progress_BooleanTarget_ReadsCompleteOncePositive()

    Progress_IsComplete_WhenNumeratorReachesTarget()

    Declaration
    public void Progress_IsComplete_WhenNumeratorReachesTarget()

    Progress_NegativeValues_ClampToZero()

    Declaration
    public void Progress_NegativeValues_ClampToZero()

    Progress_Normalized_IsTheClampedFraction()

    Declaration
    public void Progress_Normalized_IsTheClampedFraction()

    UnlockRecord_WithPlatformSyncedAndRevision_Compose()

    Declaration
    public void UnlockRecord_WithPlatformSyncedAndRevision_Compose()

    UnlockRecord_WithScreenshotKey_KeepsEveryOtherField()

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