Class AchievementConditionNodeGuiTests
EditMode tests for the two decisions the condition tree drawer makes per node before it draws anything: what the node's header says, and whether the node has a complaint of its own worth showing. The drawing is not under test — IMGUI is not a unit.
Inherited Members
Namespace: Serenity.UnityAchievements.Tests.Editor
Assembly: Tests.Editor.dll
Syntax
public class AchievementConditionNodeGuiTests
Constructors
AchievementConditionNodeGuiTests()
Declaration
public AchievementConditionNodeGuiTests()
Methods
HeaderLabelOf_ReadsAsTheNodeTypeFollowedByWhatItDemands()
Declaration
public void HeaderLabelOf_ReadsAsTheNodeTypeFollowedByWhatItDemands()
HeaderLabelOf_SaysAnEmptySlotIsEmpty()
Declaration
public void HeaderLabelOf_SaysAnEmptySlotIsEmpty()
HeaderLabelOf_SummarisesTheWholeSubtreeOfACompositeNode()
Declaration
public void HeaderLabelOf_SummarisesTheWholeSubtreeOfACompositeNode()
OwnComplaintOf_HasNothingToSayAboutAValidTree()
Declaration
public void OwnComplaintOf_HasNothingToSayAboutAValidTree()
OwnComplaintOf_HasNothingToSayAboutAnEmptySlot()
Declaration
public void OwnComplaintOf_HasNothingToSayAboutAnEmptySlot()
OwnComplaintOf_LeavesAChildsProblemToTheChild()
The rule that keeps the tree readable: Validate() reports a child's problem through its parent, so a parent that repeats one stays quiet and lets the child say it where the author can fix it.
Declaration
public void OwnComplaintOf_LeavesAChildsProblemToTheChild()
OwnComplaintOf_ReportsACompositeThatCombinesTooLittleToMeanAnything()
Declaration
public void OwnComplaintOf_ReportsACompositeThatCombinesTooLittleToMeanAnything()
OwnComplaintOf_ReportsAWrapperWithNothingToWrap()
Declaration
public void OwnComplaintOf_ReportsAWrapperWithNothingToWrap()