public void OnTargetChanged_NotAttached_DoesNothing() { TestGoToStateAction action = CreateTestGoToStateAction(); Grid grid = CreateEmptyGrid(); action.ChangeTarget(null, grid); // Target changing while not attached should not throw. }
public void OnTargetChanged_AttachedToGrid_ThrowsNoStateGroupsFoundException() { TestGoToStateAction action = CreateTestGoToStateAction(); Grid grid = CreateEmptyGrid(); this.AttachTo(action, grid); action.ChangeTarget(null, grid); }