diff options
author | therzok <marius.ungureanu@xamarin.com> | 2019-08-30 11:24:10 +0300 |
---|---|---|
committer | therzok <marius.ungureanu@xamarin.com> | 2019-08-30 11:47:11 +0300 |
commit | 72d5b6c4e8a43e9d19705cd57460760ce9132430 (patch) | |
tree | a28a22c860c4d931b86ac264b65d1b60aa50ff28 | |
parent | d59716ecda3c36f398bb3e985bc3ae8c66173b48 (diff) |
[Tests] Assert that the document view is disposed, not just the controlbackport-pr-8419-to-release-8.3
-rw-r--r-- | main/tests/Ide.Tests/MonoDevelop.Ide.Gui.Documents/DocumentControllerTests.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/tests/Ide.Tests/MonoDevelop.Ide.Gui.Documents/DocumentControllerTests.cs b/main/tests/Ide.Tests/MonoDevelop.Ide.Gui.Documents/DocumentControllerTests.cs index 1c37bba6f9..07ea8435ba 100644 --- a/main/tests/Ide.Tests/MonoDevelop.Ide.Gui.Documents/DocumentControllerTests.cs +++ b/main/tests/Ide.Tests/MonoDevelop.Ide.Gui.Documents/DocumentControllerTests.cs @@ -80,6 +80,7 @@ namespace MonoDevelop.Ide.Gui.Documents Assert.AreEqual (1, controller.Child2.DisposeCount); Assert.AreEqual (1, controller.Child1.Control.DisposeCount); Assert.AreEqual (1, controller.Child2.Control.DisposeCount); + Assert.AreEqual (1, controller.Attached.DisposeCount); Assert.AreEqual (1, controller.Attached.Control.DisposeCount); } @@ -445,7 +446,7 @@ namespace MonoDevelop.Ide.Gui.Documents var view2 = await Child2.GetDocumentView (); container.Views.Add (view2); - Attached = new ChildDisposableTestController (); + Attached = new ChildDisposableTestController { TabPageLabel = "Attached" }; await Attached.Initialize (new ModelDescriptor ()); var viewAttached = await Attached.GetDocumentView (); container.AttachedViews.Add (viewAttached); |