FAutomationTestBase::AddErrorIfFalse

Adds an error message to this test if the condition is false

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/AutomationTest.h

Include

#include "Misc/AutomationTest.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/AutomationTest.cpp

Syntax

virtual void AddErrorIfFalse
(
    bool bCondition,
    const FString & InError,
    int32 StackOffset
)

Remarks

Adds an error message to this test if the condition is false

Parameters

Parameter

Description

bCondition

The condition to validate.

InError

Error message to add to this test