diff options
author | Dominique Louis <dolouis@microsoft.com> | 2020-06-17 23:05:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 23:05:52 +0300 |
commit | 03144178603e8758e57b0e61dc9c91f1636520ce (patch) | |
tree | f342e13d9e26fd22acf46e1cd5c1ca76e6d345a2 /Xamarin.PropertyEditing.Tests | |
parent | d5de1546c3875feed2486c4b0cd0c44b937d705f (diff) |
Ensure all the screen elements in this Window have their … (#724)
* Ensure all the screen elements in this Window have their AutomationProperties.Name property set, for accessibility.
* Fix Resources file, hopefully.
* Attempt 2 at fixing Resources file.
* Change Null Category test, as we now expect Unnamed instead of null.
Diffstat (limited to 'Xamarin.PropertyEditing.Tests')
-rw-r--r-- | Xamarin.PropertyEditing.Tests/PanelViewModelTests.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Xamarin.PropertyEditing.Tests/PanelViewModelTests.cs b/Xamarin.PropertyEditing.Tests/PanelViewModelTests.cs index cd271db..84426fb 100644 --- a/Xamarin.PropertyEditing.Tests/PanelViewModelTests.cs +++ b/Xamarin.PropertyEditing.Tests/PanelViewModelTests.cs @@ -255,9 +255,9 @@ namespace Xamarin.PropertyEditing.Tests } [Test] - public async Task PropertyListCategoryGroupedWithNullCategory () + public async Task PropertyListCategoryGroupedWithUnnamedCategory () { - // Purposefully a null catgory + // Purposefully a null category, so we get an Unnamed Category var normalProp = new Mock<IPropertyInfo> (); normalProp.SetupGet (p => p.Type).Returns (typeof(string)); normalProp.SetupGet (p => p.Name).Returns ("name"); @@ -284,8 +284,7 @@ namespace Xamarin.PropertyEditing.Tests vm.SelectedObjects.Add (target); Assert.That (vm.ArrangedEditors.Count, Is.EqualTo (2)); - Assert.That (vm.ArrangedEditors[0].Category, Is.EqualTo ("ints"), "Grouped group not found or out of order"); - Assert.That (vm.ArrangedEditors[1].Category, Is.Empty); + Assert.That (vm.ArrangedEditors[0].Category, Is.EqualTo (Properties.Resources.UnnamedCategory), "Grouped group not found or out of order"); } [Test] |