terminal/src/host/ft_uia/Common/AutoHelpers.cs
Dustin Howett d4d59fa339 Initial release of the Windows Terminal source code
This commit introduces all of the Windows Terminal and Console Host source,
under the MIT license.
2019-05-02 15:29:04 -07:00

32 lines
1.1 KiB
C#

//----------------------------------------------------------------------------------------------------------------------
// <copyright file="AutoHelpers.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <summary>Console UI Automation test helpers</summary>
//----------------------------------------------------------------------------------------------------------------------
namespace Conhost.UIA.Tests.Common
{
using System;
using System.Globalization;
using WEX.Logging.Interop;
public static class AutoHelpers
{
public static string FormatInvariant(string format, params object[] args)
{
return string.Format(CultureInfo.InvariantCulture, format, args);
}
public static void LogInvariant(string format, params object[] args)
{
Log.Comment(CultureInfo.InvariantCulture, format, args);
}
public static bool DwordToBool(this int value)
{
return value != 0;
}
}
}