|
|
@ -496,7 +496,7 @@ namespace Avalonia.LeakTests |
|
|
|
|
|
|
|
|
AttachShowAndDetachContextMenu(window); |
|
|
AttachShowAndDetachContextMenu(window); |
|
|
|
|
|
|
|
|
Mock.Get(window.PlatformImpl).Invocations.Clear(); |
|
|
Mock.Get(ValidatingWindowImpl.Unwrap(window.PlatformImpl)).Invocations.Clear(); |
|
|
dotMemory.Check(memory => |
|
|
dotMemory.Check(memory => |
|
|
Assert.Equal(initialMenuCount, memory.GetObjects(where => where.Type.Is<ContextMenu>()).ObjectsCount)); |
|
|
Assert.Equal(initialMenuCount, memory.GetObjects(where => where.Type.Is<ContextMenu>()).ObjectsCount)); |
|
|
dotMemory.Check(memory => |
|
|
dotMemory.Check(memory => |
|
|
@ -541,7 +541,7 @@ namespace Avalonia.LeakTests |
|
|
BuildAndShowContextMenu(window); |
|
|
BuildAndShowContextMenu(window); |
|
|
BuildAndShowContextMenu(window); |
|
|
BuildAndShowContextMenu(window); |
|
|
|
|
|
|
|
|
Mock.Get(window.PlatformImpl).Invocations.Clear(); |
|
|
Mock.Get(ValidatingWindowImpl.Unwrap(window.PlatformImpl)).Invocations.Clear(); |
|
|
dotMemory.Check(memory => |
|
|
dotMemory.Check(memory => |
|
|
Assert.Equal(initialMenuCount, memory.GetObjects(where => where.Type.Is<ContextMenu>()).ObjectsCount)); |
|
|
Assert.Equal(initialMenuCount, memory.GetObjects(where => where.Type.Is<ContextMenu>()).ObjectsCount)); |
|
|
dotMemory.Check(memory => |
|
|
dotMemory.Check(memory => |
|
|
|