Class UnityAchievementDefinitionSourceTests
PlayMode tests for UnityAchievementDefinitionSource: what it hands the registry builder, what it hands the evaluator, and what it does with an asset it cannot use.
Inherited Members
Namespace: Serenity.UnityAchievements.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class UnityAchievementDefinitionSourceTests
Remarks
Every test injects its own loader, so nothing here depends on an Addressables group, an Addressables build, or a temporary asset on disk — which is exactly why the loader is a constructor parameter.
Constructors
UnityAchievementDefinitionSourceTests()
Declaration
public UnityAchievementDefinitionSourceTests()
Methods
Assets_ExposeWhatWasLoaded_IncludingTheUnusableOnes()
Declaration
public void Assets_ExposeWhatWasLoaded_IncludingTheUnusableOnes()
ConditionSourcePort_AnswersTheSameMapAsTheProperty()
Declaration
public void ConditionSourcePort_AnswersTheSameMapAsTheProperty()
ConditionSourceReader_ReadsTheMapThroughTheDefinitionSourcePort()
Declaration
public void ConditionSourceReader_ReadsTheMapThroughTheDefinitionSourcePort()
Conditions_DuplicateIdOverwritingATree_IsReported()
Declaration
public void Conditions_DuplicateIdOverwritingATree_IsReported()
Conditions_DuplicateIdWithoutATree_ClearsTheEarlierOne()
Declaration
public void Conditions_DuplicateIdWithoutATree_ClearsTheEarlierOne()
Conditions_DuplicateId_LastAuthoredTreeWins()
Declaration
public void Conditions_DuplicateId_LastAuthoredTreeWins()
Conditions_HoldOnlyTheAchievementsThatAuthoredATree()
Declaration
public void Conditions_HoldOnlyTheAchievementsThatAuthoredATree()
GetDefinitions_DuplicateId_KeepsBothForTheRegistryBuilderToJudge()
Declaration
public void GetDefinitions_DuplicateId_KeepsBothForTheRegistryBuilderToJudge()
GetDefinitions_LoaderAnswersNull_ReadsAsNoAchievements()
Declaration
public void GetDefinitions_LoaderAnswersNull_ReadsAsNoAchievements()
GetDefinitions_NullEntry_IsSkippedAndReported()
Declaration
public void GetDefinitions_NullEntry_IsSkippedAndReported()
GetDefinitions_ReturnsEveryUsableAsset()
Declaration
public void GetDefinitions_ReturnsEveryUsableAsset()
GetDefinitions_ThrowingLoader_IsAttemptedAndReportedExactlyOnce()
Declaration
public void GetDefinitions_ThrowingLoader_IsAttemptedAndReportedExactlyOnce()
GetDefinitions_UnusableAsset_IsSkippedAndReported()
Declaration
public void GetDefinitions_UnusableAsset_IsSkippedAndReported()
Reading_BothDefinitionsAndConditions_LoadsTheAssetsExactlyOnce()
Declaration
public void Reading_BothDefinitionsAndConditions_LoadsTheAssetsExactlyOnce()
TearDown()
Declaration
public void TearDown()