ReSharper 2023.1 Help

Predefined File Templates for Unreal Engine

This topic lists all predefined file templates for C++ in ReSharper 2023.1. For more information about file templates, see Create files from templates.

Template

Details

Complex Test

Complex Test

Scope Unreal projects

Body

#include "Misc/AutomationTest.h" IMPLEMENT_COMPLEX_AUTOMATION_TEST($CLASS_NAME$, "$NAMESPACE$.$SELSTART$$CLASS_NAME$$SELEND$", EAutomationTestFlags::EditorContext | EAutomationTestFlags::EngineFilter) void $CLASS_NAME$::GetTests(TArray<FString>& OutBeautifiedNames, TArray <FString>& OutTestCommands) const { $END$ } bool $CLASS_NAME$::RunTest(const FString& Parameters) { return true; }

Parameters

  • CLASS_NAME - Evaluates to the current file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAMESPACE - Evaluates to the default namespace for the current file

  • END - The caret position after the template is applied.

Simple Test

Simple Test

Scope Unreal projects

Body

#include "Misc/AutomationTest.h" IMPLEMENT_SIMPLE_AUTOMATION_TEST($CLASS_NAME$, "$NAMESPACE$.$SELSTART$$CLASS_NAME$$SELEND$", EAutomationTestFlags::EditorContext | EAutomationTestFlags::EngineFilter) bool $CLASS_NAME$::RunTest(const FString& Parameters) { // Make the test pass by returning true, or fail by returning false. return true; }

Parameters

  • CLASS_NAME - Evaluates to the current file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAMESPACE - Evaluates to the default namespace for the current file

Last modified: 27 March 2023