System.InvalidOperationException : The current thread is not associated with the Dispatcher. Use InvokeAsync() to switch execution to the Dispatcher when triggering rendering or component state. at Microsoft.AspNetCore.Components.Dispatcher.AssertAccess() at Microsoft.AspNetCore.Components.RenderTree.Renderer.AddToRenderQueue(Int32 componentId, RenderFragment renderFragment) at Microsoft.AspNetCore.Components.ComponentBase.StateHasChanged() at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleEvent.HandleEventAsync(EventCallbackWorkItem callback, Object arg) at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.CollectionEditorLifecycleTests.<>c__DisplayClass18_1.<Capture>b__1() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/CollectionEditorLifecycleTests.cs:line 91 at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.CollectionEditorLifecycleTests.DisposedEditor_RefusesCapturedSave() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/CollectionEditorLifecycleTests.cs:line 80 --- End of stack trace from previous location --- [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.0.2+dd36e86129 (64-bit .NET 10.0.14) [xUnit.net 00:00:00.30] Discovering: ZB.MOM.WW.OtOpcUa.AdminUI.Tests [xUnit.net 00:00:01.02] Discovered: ZB.MOM.WW.OtOpcUa.AdminUI.Tests [xUnit.net 00:00:01.14] Starting: ZB.MOM.WW.OtOpcUa.AdminUI.Tests [xUnit.net 00:00:01.40] System.InvalidOperationException : The current thread is not associated with the Dispatcher. Use InvokeAsync() to switch execution to the Dispatcher when triggering rendering or component state. [xUnit.net 00:00:01.40] Stack Trace: [xUnit.net 00:00:01.40] at Microsoft.AspNetCore.Components.Dispatcher.AssertAccess() [xUnit.net 00:00:01.40] at Microsoft.AspNetCore.Components.RenderTree.Renderer.AddToRenderQueue(Int32 componentId, RenderFragment renderFragment) [xUnit.net 00:00:01.40] at Microsoft.AspNetCore.Components.ComponentBase.StateHasChanged() [xUnit.net 00:00:01.40] at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleEvent.HandleEventAsync(EventCallbackWorkItem callback, Object arg) [xUnit.net 00:00:01.40] /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/CollectionEditorLifecycleTests.cs(91,0): at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.CollectionEditorLifecycleTests.<>c__DisplayClass18_1.<Capture>b__1() [xUnit.net 00:00:01.40] /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/CollectionEditorLifecycleTests.cs(80,0): at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.CollectionEditorLifecycleTests.DisposedEditor_RefusesCapturedSave() [xUnit.net 00:00:01.40] --- End of stack trace from previous location --- [xUnit.net 00:00:01.41] Finished: ZB.MOM.WW.OtOpcUa.AdminUI.Tests [xUnit.net 00:00:01.40] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.CollectionEditorLifecycleTests.DisposedEditor_RefusesCapturedSave [FAIL]