Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool.Tests/UnrealHeaderToolTests.cs
joe kirchoff 36d266e932 UnrealBuildTool: Automated code cleanup
#rnx
#preflight 6476799e947ff6973c225619

[CL 25693241 by joe kirchoff in ue5-main branch]
2023-05-30 18:38:07 -04:00

40 lines
1.2 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.Reflection;
using EpicGames.Core;
using EpicGames.UHT.Utils;
using Microsoft.Extensions.Logging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using UnrealBuildBase;
using UnrealBuildTool.Modes;
namespace UnrealBuildToolTests
{
[TestClass]
public class UnrealHeaderToolTests
{
[TestMethod]
public void Run()
{
#if DISABLE
FileReference AssemblyFile = new FileReference(Assembly.GetExecutingAssembly().Location);
Unreal.LocationOverride.RootDirectory = DirectoryReference.Combine(AssemblyFile.Directory, "../../../../..");
string[] Arguments = System.Array.Empty<string>();
CommandLineArguments CommandLineArguments = new CommandLineArguments(Arguments);
UhtGlobalOptions Options = new UhtGlobalOptions(CommandLineArguments);
// Initialize the attributes
UhtTables Tables = new UhtTables();
// Initialize the configuration
IUhtConfig Config = new UhtConfigImpl(CommandLineArguments);
// Run the tests
using ILoggerFactory factory = LoggerFactory.Create(x => x.AddEpicDefault());
Assert.IsTrue(UhtTestHarness.RunTests(Tables, Config, Options, factory.CreateLogger<UhtTestHarness>()));
#endif
}
}
}