You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dynamic data provider should run on the same context (UI Thead here) than the test itself.
[TestClass]publicclassSomeTests{[TestMethod][RunsOnUIThread][DynamicData(nameof(GetTestsData), DynamicDataSourceType.Method)]publicDo_The_Tests(FrameworkElementelement){// Do something with the `element`}publicIEnumerable<object[]>GetTestsData(){varstackPanel=new StackPanel();
stackPanel.Children.Add(new Border());// WILL CRASH HEREyieldreturn[ stackPanel ];}}
The text was updated successfully, but these errors were encountered:
The dynamic data provider should run on the same context (UI Thead here) than the test itself.
The text was updated successfully, but these errors were encountered: