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