diff options
author | Kyle White <kyle.white@xamarin.com> | 2015-09-29 02:17:13 +0300 |
---|---|---|
committer | Kyle White <kyle.white@xamarin.com> | 2015-09-29 02:21:21 +0300 |
commit | 05874302a87bfe227d5ee21a64ae2bb97e73505a (patch) | |
tree | f41c8f1c251db25ea148b4e414be0d8743ebf555 /main/tests/UserInterfaceTests/Util.cs | |
parent | 929a518c7759e958ed0c60d94f081f3cbc163f13 (diff) |
[UITest] Add util for bolded text
It is common we need to bold text, this will help.
Diffstat (limited to 'main/tests/UserInterfaceTests/Util.cs')
-rw-r--r-- | main/tests/UserInterfaceTests/Util.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/tests/UserInterfaceTests/Util.cs b/main/tests/UserInterfaceTests/Util.cs index 4b4c437a64..2fbc191a18 100644 --- a/main/tests/UserInterfaceTests/Util.cs +++ b/main/tests/UserInterfaceTests/Util.cs @@ -46,6 +46,11 @@ namespace UserInterfaceTests return new string (str.Select (c => invalids.Contains (c) ? replaceWith : c).ToArray ()); } + public static string ToBoldText (this string str) + { + return string.Format ("<b>{0}</b>", str); + } + public static FilePath CreateTmpDir (string hint = null) { var cwd = new FileInfo (Assembly.GetExecutingAssembly ().Location).DirectoryName; |