diff options
author | Bertrand Le Roy <beleroy@microsoft.com> | 2017-09-19 02:22:44 +0300 |
---|---|---|
committer | Bertrand Le Roy <beleroy@microsoft.com> | 2017-09-19 21:49:52 +0300 |
commit | b07006bdb01a0cb5557f6b65718d46bc403a2a9f (patch) | |
tree | f765fc9dea6b06373daca1c422216e968a7d59a7 /Xamarin.PropertyEditing.Tests/Helpers.cs | |
parent | 89651e8f64b657e89cf2ca6a97689fa46b9bef8f (diff) |
Add support for color spaces to the solid brush view model.
Diffstat (limited to 'Xamarin.PropertyEditing.Tests/Helpers.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Tests/Helpers.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Tests/Helpers.cs b/Xamarin.PropertyEditing.Tests/Helpers.cs index ee27a91..738cac2 100644 --- a/Xamarin.PropertyEditing.Tests/Helpers.cs +++ b/Xamarin.PropertyEditing.Tests/Helpers.cs @@ -28,10 +28,13 @@ namespace Xamarin.PropertyEditing.Tests static char GetConsonnant (this Random rand) => consonnants[rand.Next (0, vowels.Length)]; public static string NextFilename (this Random rand, string extension) - => string.Concat( - rand.GetConsonnant(), rand.GetVowel(), + => rand.NextString () + extension; + + public static string NextString (this Random rand) + => string.Concat ( rand.GetConsonnant (), rand.GetVowel (), rand.GetConsonnant (), rand.GetVowel (), - extension); + rand.GetConsonnant (), rand.GetVowel () + ); } } |