diff options
Diffstat (limited to 'Xamarin.PropertyEditing.Tests')
-rw-r--r-- | Xamarin.PropertyEditing.Tests/PanelViewModelTests.cs | 1 | ||||
-rw-r--r-- | Xamarin.PropertyEditing.Tests/PropertiesViewModelTests.cs | 2 | ||||
-rw-r--r-- | Xamarin.PropertyEditing.Tests/RatioViewModelTests.cs | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Tests/PanelViewModelTests.cs b/Xamarin.PropertyEditing.Tests/PanelViewModelTests.cs index 723d86f..64266ec 100644 --- a/Xamarin.PropertyEditing.Tests/PanelViewModelTests.cs +++ b/Xamarin.PropertyEditing.Tests/PanelViewModelTests.cs @@ -58,7 +58,6 @@ namespace Xamarin.PropertyEditing.Tests await Task.Yield (); Assert.That (vm.Properties, Is.Empty); - this.context.ThrowPendingExceptions (); } [Test] diff --git a/Xamarin.PropertyEditing.Tests/PropertiesViewModelTests.cs b/Xamarin.PropertyEditing.Tests/PropertiesViewModelTests.cs index 6560aa9..0e72058 100644 --- a/Xamarin.PropertyEditing.Tests/PropertiesViewModelTests.cs +++ b/Xamarin.PropertyEditing.Tests/PropertiesViewModelTests.cs @@ -231,6 +231,7 @@ namespace Xamarin.PropertyEditing.Tests var editor = new Mock<IObjectEditor> (); editor.SetupGet (e => e.Target).Returns (obj); editor.SetupGet (e => e.Properties).Returns (new IPropertyInfo[0]); + editor.SetupGet (oe => oe.TargetType).Returns (obj.GetType ().ToTypeInfo ()); var provider = new Mock<IEditorProvider> (); provider.Setup (p => p.GetObjectEditorAsync (obj)).ReturnsAsync (editor.Object); @@ -318,6 +319,7 @@ namespace Xamarin.PropertyEditing.Tests var editor2 = new Mock<IObjectEditor> (); editor2.SetupGet (e => e.Properties).Returns (new IPropertyInfo[0]); editor2.SetupGet (e => e.Target).Returns (obj2); + editor2.SetupGet (oe => oe.TargetType).Returns (obj2.GetType ().ToTypeInfo ()); editor2.As<INameableObject> (); var provider = new Mock<IEditorProvider> (); diff --git a/Xamarin.PropertyEditing.Tests/RatioViewModelTests.cs b/Xamarin.PropertyEditing.Tests/RatioViewModelTests.cs index 9aeedd0..5f6493f 100644 --- a/Xamarin.PropertyEditing.Tests/RatioViewModelTests.cs +++ b/Xamarin.PropertyEditing.Tests/RatioViewModelTests.cs @@ -81,8 +81,8 @@ namespace Xamarin.PropertyEditing.Tests var property = GetPropertyMock (); var editor = GetBasicEditor (property.Object); var vm = GetViewModel (property.Object, new[] { editor }); - Assume.That (vm.Numerator, Is.EqualTo (0)); - Assume.That (vm.Denominator, Is.EqualTo (0)); + Assume.That (vm.Numerator, Is.EqualTo (1)); + Assume.That (vm.Denominator, Is.EqualTo (1)); bool nChanged = false, dChanged = false, sChanged = false, valueChanged = false; vm.PropertyChanged += (sender, args) => { |