You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
20 lines
512 B
C++
20 lines
512 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Catch2Includes.h"
|
|
#include "AutoRTFM/AutoRTFM.h"
|
|
#include "HAL/PlatformMisc.h"
|
|
|
|
TEST_CASE("FPlatformMisc.CreateGUID")
|
|
{
|
|
AutoRTFM::ForTheRuntime::SetEnsureOnAbortByLanguage(true);
|
|
FGuid Guid;
|
|
AutoRTFM::ETransactionResult Result = AutoRTFM::Transact([&]
|
|
{
|
|
FPlatformMisc::CreateGuid(Guid);
|
|
});
|
|
AutoRTFM::ForTheRuntime::SetEnsureOnAbortByLanguage(false);
|
|
|
|
REQUIRE(AutoRTFM::ETransactionResult::Committed == Result);
|
|
REQUIRE(Guid != FGuid());
|
|
}
|