Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Le Roy <beleroy@microsoft.com>2017-09-19 02:22:44 +0300
committerBertrand Le Roy <beleroy@microsoft.com>2017-09-19 21:49:52 +0300
commitb07006bdb01a0cb5557f6b65718d46bc403a2a9f (patch)
treef765fc9dea6b06373daca1c422216e968a7d59a7 /Xamarin.PropertyEditing.Tests/Helpers.cs
parent89651e8f64b657e89cf2ca6a97689fa46b9bef8f (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.cs9
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 ()
+ );
}
}