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-26 20:51:07 +0300
committerBertrand Le Roy <beleroy@microsoft.com>2017-09-26 20:51:07 +0300
commitbfc67633fb42c34e0c680685ea14c52f5554579a (patch)
tree904c80d5d9f42c0435de514d148acf8a0125ae6c /Xamarin.PropertyEditing.Tests/SolidBrushPropertyViewModelTests.cs
parentb07006bdb01a0cb5557f6b65718d46bc403a2a9f (diff)
Change `ISolidBrushPropertyInfo` into `IColorSpaced`
Diffstat (limited to 'Xamarin.PropertyEditing.Tests/SolidBrushPropertyViewModelTests.cs')
-rw-r--r--Xamarin.PropertyEditing.Tests/SolidBrushPropertyViewModelTests.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Tests/SolidBrushPropertyViewModelTests.cs b/Xamarin.PropertyEditing.Tests/SolidBrushPropertyViewModelTests.cs
index 2803278..ebd4a19 100644
--- a/Xamarin.PropertyEditing.Tests/SolidBrushPropertyViewModelTests.cs
+++ b/Xamarin.PropertyEditing.Tests/SolidBrushPropertyViewModelTests.cs
@@ -26,9 +26,9 @@ namespace Xamarin.PropertyEditing.Tests
[Test]
public void ColorSpaces ()
{
- var mockProperty = new Mock<ISolidBrushPropertyInfo> ();
+ var mockProperty = new Mock<IPropertyInfo> ();
mockProperty.SetupGet (pi => pi.Type).Returns (typeof (SolidBrush));
- mockProperty.SetupGet (pi => pi.ColorSpaces).Returns (SampleColorSpaces);
+ mockProperty.As<IColorSpaced>().SetupGet (pi => pi.ColorSpaces).Returns (SampleColorSpaces);
var mockEditor = new Mock<IObjectEditor> ();
var vm = new SolidBrushPropertyViewModel(mockProperty.Object, new[] { mockEditor.Object });