We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TraceListener
1 parent 5370ecd commit b5f62f7Copy full SHA for b5f62f7
test/Microsoft.VisualStudio.Validation.Tests/AssertDialogSuppression.cs
@@ -33,6 +33,14 @@ public AssertDialogSuppression()
33
this.originalAssertUiSetting = assertDialogListener.AssertUiEnabled;
34
assertDialogListener.AssertUiEnabled = false;
35
}
36
+
37
+ // Xunit.v3 v2 also adds a TraceListener that throws on failure, so remove that too.
38
+ // See also https://github.com/xunit/xunit/issues/3317.
39
+ // My mechanism for removing the listener is designed to work before and after that issue is resolved.
40
+ if (Trace.Listeners.OfType<Xunit.Internal.TraceAssertOverrideListener>().FirstOrDefault() is { } listener)
41
+ {
42
+ Trace.Listeners.Remove(listener);
43
+ }
44
#endif
45
46
0 commit comments