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:
authorEric Maupin <ermaup@microsoft.com>2018-10-04 19:20:50 +0300
committerEric Maupin <ermaup@microsoft.com>2018-10-04 19:20:52 +0300
commit8b1049979f1ecd4561fcad3fa8dc7181ae06594b (patch)
tree8209e0ac0580b9be2ca4ca05c18f4855dc93282a /Xamarin.PropertyEditing.Tests
parente9fa3d964c965b7108fed5e63a6c050ce9b37fd1 (diff)
[Tests] We generally don't check correctness of property changed
As long as it signals when something potentially changed, that's good enough. Any consuming code should still operate correctly if it signals a change when there wasn't one, it's just a perf it. We can revisit if the perf hit ever becomes noticeable.
Diffstat (limited to 'Xamarin.PropertyEditing.Tests')
-rw-r--r--Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs b/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs
index 6fe0f04..bb719e8 100644
--- a/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs
+++ b/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs
@@ -1285,7 +1285,7 @@ namespace Xamarin.PropertyEditing.Tests
Assert.That (vm.InputMode, Is.EqualTo (modes[mode]));
Assert.That (modeChanged, Is.True);
Assert.That (vm.IsInputEnabled, Is.EqualTo (!modes[mode].IsSingleValue));
- Assert.That (enabledChanged, Is.EqualTo (modes[mode].IsSingleValue));
+ Assert.That (enabledChanged, Is.True);
}
[TestCase (true)]
@@ -1330,7 +1330,7 @@ namespace Xamarin.PropertyEditing.Tests
vm.InputMode = modes[1];
- Assert.That (changed, Is.EqualTo (writeEnabled != expectation));
+ Assert.That (changed, Is.True);
Assert.That (vm.IsInputEnabled, Is.EqualTo (expectation));
}