diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2022-10-27 13:53:53 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2022-10-27 13:53:53 +0300 |
commit | 3752481f197aae34e4f6aa837743ef4597581793 (patch) | |
tree | 45fc774082fdde5daf67bf0f6510a7d0700f6279 | |
parent | 578e70af8c7f847e805a10a4fa9f8c5a55505cff (diff) |
Fix unit test
-rw-r--r-- | Test/UnitTests/TestEvents.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Test/UnitTests/TestEvents.cs b/Test/UnitTests/TestEvents.cs index 2b6cd73..c0ca45a 100644 --- a/Test/UnitTests/TestEvents.cs +++ b/Test/UnitTests/TestEvents.cs @@ -171,6 +171,7 @@ namespace UnitTests // All addins are enabled Assert.AreEqual (4, AddinManager.GetExtensionNodes ("/SimpleApp/Writers").Count, "count 1"); + AddinManager.GetExtensionNodes ("/SimpleApp/ItemTree"); string[] addinExtensions = new string[] { "/SimpleApp/Writers", @@ -178,7 +179,7 @@ namespace UnitTests "/SimpleApp.Core/TypeExtensions/SimpleApp.ISampleExtender", "/SimpleApp.Core/TypeExtensions/SimpleApp.IWriterWithMetadata", "/SimpleApp/NodesWithAttribute", - "/SimpleApp/DataExtensionWithAttribute", + "/SimpleApp/DataExtensionWithAttribute" }; InitChangedExtensionEvent (addinExtensions); @@ -209,7 +210,8 @@ namespace UnitTests "/SimpleApp/NodeWithChildren", "/SystemInformation/Modules", "/SimpleApp/DefaultInsertAfter", - "/SimpleApp/DefaultInsertBefore"); + "/SimpleApp/DefaultInsertBefore", + "/SimpleApp/ItemTree"); notifyCount = addCount = removeCount = eventCount = 0; AddinManager.Registry.DisableAddin ("SimpleApp.FileContentExtension,0.1.0"); @@ -220,7 +222,7 @@ namespace UnitTests Assert.AreEqual (1, notifyCount, "notifyCount 3"); Assert.AreEqual (0, addCount, "addCount 3"); Assert.AreEqual (1, removeCount, "removeCount 3"); - Assert.AreEqual (6, eventCount, "eventCount 3"); + Assert.AreEqual (7, eventCount, "eventCount 3"); // Now unregister |