Class Utils
Inheritance
Inherited Members
Namespace: ArtOfTest.Common
Assembly: ArtOfTest.WebAii.dll
Syntax
public static class Utils
Methods
Compress(FileInfo)
Declaration
public static FileInfo Compress(FileInfo inFileInfo)
Parameters
System.IO.FileInfo
inFileInfo
|
Returns
System.IO.FileInfo
|
CropBitmap(Image, Rectangle)
Declaration
public static Bitmap CropBitmap(Image original, Rectangle cutArea)
Parameters
System.Drawing.Image
original
|
System.Drawing.Rectangle
cutArea
|
Returns
System.Drawing.Bitmap
|
CropBitmap(Image, RectangleF)
Declaration
public static Bitmap CropBitmap(Image original, RectangleF cutArea)
Parameters
System.Drawing.Image
original
|
System.Drawing.RectangleF
cutArea
|
Returns
System.Drawing.Bitmap
|
DateTimeToEpoch(DateTime)
Declaration
public static double DateTimeToEpoch(DateTime dateTime)
Parameters
System.DateTime
dateTime
|
Returns
System.Double
|
Decompress(FileInfo)
Declaration
public static FileInfo Decompress(FileInfo inFileInfo)
Parameters
System.IO.FileInfo
inFileInfo
|
Returns
System.IO.FileInfo
|
DeleteDirectoryWithFilesAndSubdirectories(String)
Declaration
public static void DeleteDirectoryWithFilesAndSubdirectories(string pathToDirectoryToDelete)
Parameters
System.String
pathToDirectoryToDelete
|
EscapeSingleQuotes(String)
Declaration
public static string EscapeSingleQuotes(string text)
Parameters
System.String
text
|
Returns
System.String
|
FullDomainName(NetworkCredential)
Declaration
public static string FullDomainName(NetworkCredential credentials)
Parameters
System.Net.NetworkCredential
credentials
|
Returns
System.String
|
GenerateHash(String)
Declaration
public static string GenerateHash(string str)
Parameters
System.String
str
|
Returns
System.String
|
GetDateTimeIntersection(DateTime, DateTime, DateTime, DateTime, Boolean)
Declaration
public static TimeSpan GetDateTimeIntersection(DateTime mainStart, DateTime mainEnd, DateTime intervalStart, DateTime intervalEnd, bool allowIntervalBeforeMain)
Parameters
System.DateTime
mainStart
|
System.DateTime
mainEnd
|
System.DateTime
intervalStart
|
System.DateTime
intervalEnd
|
System.Boolean
allowIntervalBeforeMain
|
Returns
System.TimeSpan
|
GetFirstVisibleControl(Visual)
Declaration
public static FrameworkElement GetFirstVisibleControl(Visual myVisual)
Parameters
System.Windows.Media.Visual
myVisual
|
Returns
System.Windows.FrameworkElement
|
GetMonitorScaleFactor(HMONITOR)
Declaration
public static float GetMonitorScaleFactor(HMONITOR hMon)
Parameters
Telerik.TestingFramework.Interop.Win32.HMONITOR
hMon
|
Returns
System.Single
|
GetPrimaryMonitorScale()
Declaration
public static int GetPrimaryMonitorScale()
Returns
System.Int32
|
GetPrimaryMonitorScaleFactor()
Declaration
public static float GetPrimaryMonitorScaleFactor()
Returns
System.Single
|
GetScaleFactorForMonitor(HMONITOR)
Declaration
public static int GetScaleFactorForMonitor(HMONITOR hMon)
Parameters
Telerik.TestingFramework.Interop.Win32.HMONITOR
hMon
|
Returns
System.Int32
|
GetSubstitutedFrameInfo(Uri, FrameInfo)
Declaration
public static FrameInfo GetSubstitutedFrameInfo(Uri baseUri, FrameInfo frameInfo)
Parameters
System.Uri
baseUri
|
FrameInfo
frameInfo
|
Returns
FrameInfo
|
IsVistaOrLater()
Declaration
public static bool IsVistaOrLater()
Returns
System.Boolean
|
IsWin7OrLater()
Declaration
public static bool IsWin7OrLater()
Returns
System.Boolean
|
IsWin81OrLater()
Declaration
public static bool IsWin81OrLater()
Returns
System.Boolean
|
JSGetContentWindowHeight(Browser)
Declaration
public static int JSGetContentWindowHeight(Browser brw)
Parameters
Browser
brw
|
Returns
System.Int32
|
JSGetContentWindowWidth(Browser)
Declaration
public static int JSGetContentWindowWidth(Browser brw)
Parameters
Browser
brw
|
Returns
System.Int32
|
QueryAssemblyInfo(String)
Declaration
public static string QueryAssemblyInfo(string assemblyName)
Parameters
System.String
assemblyName
|
Returns
System.String
|
Swap<T>(ref T, ref T)
Declaration
public static void Swap<T>(ref T lhs, ref T rhs)
Parameters
T
lhs
|
T
rhs
|
Type Parameters
T
|
TryEnterRunOnceNamedLock(Boolean, String, Object[])
Declaration
public static bool TryEnterRunOnceNamedLock(bool bGlobal, string strNamePrefix, params object[] hashCodeSuffixSources)
Parameters
System.Boolean
bGlobal
|
System.String
strNamePrefix
|
System.Object[]
hashCodeSuffixSources
|
Returns
System.Boolean
|