Base:
4 overrides of StackTrace
xunit.assert (4)
Sdk\Exceptions\CollectionException.cs (1)
99 public override string? StackTrace
Sdk\Exceptions\MultipleException.cs (1)
40 public override string? StackTrace =>
Sdk\Exceptions\RaisesException.cs (1)
75 public override string? StackTrace => stackTrace ?? base.StackTrace;
Sdk\Exceptions\ThrowsException.cs (1)
73 public override string? StackTrace => stackTrace ?? base.StackTrace;
13 references to StackTrace
Microsoft.DotNet.XUnitAssert.Tests (8)
ExceptionAssertsTests.cs (8)
63 Assert.Contains("Throws_Generic_Action.ThrowingMethod", exception.StackTrace); 64 Assert.DoesNotContain("Xunit.Assert.Throws", exception.StackTrace); 136 Assert.Contains("StubAccessor.get_FailingProperty", exception.StackTrace); 137 Assert.DoesNotContain("Xunit.Assert.Throws", exception.StackTrace); 290 Assert.Contains("ThrowsAny_Generic_Action.ThrowingMethod", exception.StackTrace); 291 Assert.DoesNotContain("Xunit.Assert.ThrowsAny", exception.StackTrace); 358 Assert.Contains("StubAccessor.get_FailingProperty", exception.StackTrace); 359 Assert.DoesNotContain("Xunit.Assert.ThrowsAny", exception.StackTrace);
xunit.assert (5)
Sdk\Exceptions\CollectionException.cs (2)
107 return base.StackTrace; 109 return innerStackTrace + Environment.NewLine + base.StackTrace;
Sdk\Exceptions\RaisesException.cs (1)
75 public override string? StackTrace => stackTrace ?? base.StackTrace;
Sdk\Exceptions\ThrowsException.cs (1)
73 public override string? StackTrace => stackTrace ?? base.StackTrace;
Sdk\Exceptions\XunitException.cs (1)
112 var stackTrace = StackTrace;