diff options
author | Larry Ewing <lewing@gmail.com> | 2018-02-17 02:38:59 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2018-04-02 20:59:32 +0300 |
commit | 419458171919fe2b3fed00467c75cc5414373421 (patch) | |
tree | bb192222432d9ad6f9d7b7eddc9bac96a726545f /Xamarin.PropertyEditing.Tests | |
parent | 3af97e6a5c08d49e070c87abd91a47bb84d9b222 (diff) |
Try to handle null ValueInfo<T> without crashing
Diffstat (limited to 'Xamarin.PropertyEditing.Tests')
-rw-r--r-- | Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs b/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs index ebeb6e4..18b8e30 100644 --- a/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs +++ b/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs @@ -143,9 +143,6 @@ namespace Xamarin.PropertyEditing.Tests [Test] public void MultipleValuesNull () { - TValue value = GetNonDefaultRandomTestValue (); - TValue otherValue = GetRandomTestValue (); - var basicEditor = GetBasicEditor (); var prop = basicEditor.Properties.First (); var editor = new Mock<IObjectEditor> (); @@ -185,9 +182,6 @@ namespace Xamarin.PropertyEditing.Tests TValue value = GetNonDefaultRandomTestValue (); var vm = GetBasicTestModel (value); - var editor = vm.Editors.First (); - var prop = editor.Properties.First (); - Assume.That (vm.Value, Is.EqualTo (value)); vm.Editors.Remove (vm.Editors.First ()); @@ -1109,7 +1103,6 @@ namespace Xamarin.PropertyEditing.Tests mock.SetupGet (pi => pi.Type).Returns (typeof(TValueReal)); mock.SetupGet (pi => pi.Name).Returns (name); mock.SetupGet (pi => pi.Category).Returns (category); - mock.SetupGet (pi => pi.ValueSources).Returns (ValueSources.Default | ValueSources.Local); AugmentPropertyMock (mock); return mock; |