46 types derived from XunitException
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Infrastructure\HttpClientExtensions.cs (1)
60
private class StatusCodeMismatchException :
XunitException
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
15
public class BrowserAssertFailedException :
XunitException
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
15
public class BrowserAssertFailedException :
XunitException
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
15
public class BrowserAssertFailedException :
XunitException
Templates.Tests (1)
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
15
public class BrowserAssertFailedException :
XunitException
xunit.assert (41)
Sdk\Exceptions\AllException.cs (1)
21
partial class AllException :
XunitException
Sdk\Exceptions\CollectionException.cs (1)
28
partial class CollectionException :
XunitException
Sdk\Exceptions\ContainsException.cs (1)
19
partial class ContainsException :
XunitException
Sdk\Exceptions\DistinctException.cs (1)
18
partial class DistinctException :
XunitException
Sdk\Exceptions\DoesNotContainException.cs (1)
19
partial class DoesNotContainException :
XunitException
Sdk\Exceptions\DoesNotMatchException.cs (1)
18
partial class DoesNotMatchException :
XunitException
Sdk\Exceptions\EmptyException.cs (1)
19
partial class EmptyException :
XunitException
Sdk\Exceptions\EndsWithException.cs (1)
19
partial class EndsWithException :
XunitException
Sdk\Exceptions\EqualException.cs (1)
23
partial class EqualException :
XunitException
Sdk\Exceptions\EquivalentException.cs (1)
23
partial class EquivalentException :
XunitException
Sdk\Exceptions\FailException.cs (1)
15
partial class FailException :
XunitException
Sdk\Exceptions\FalseException.cs (1)
18
partial class FalseException :
XunitException
Sdk\Exceptions\InRangeException.cs (1)
18
partial class InRangeException :
XunitException
Sdk\Exceptions\IsAssignableFromException.cs (1)
21
partial class IsAssignableFromException :
XunitException
Sdk\Exceptions\IsNotAssignableFromException.cs (1)
18
partial class IsNotAssignableFromException :
XunitException
Sdk\Exceptions\IsNotTypeException.cs (1)
18
partial class IsNotTypeException :
XunitException
Sdk\Exceptions\IsTypeException.cs (1)
18
partial class IsTypeException :
XunitException
Sdk\Exceptions\MatchesException.cs (1)
18
partial class MatchesException :
XunitException
Sdk\Exceptions\MultipleException.cs (1)
20
partial class MultipleException :
XunitException
Sdk\Exceptions\NotEmptyException.cs (1)
15
partial class NotEmptyException :
XunitException
Sdk\Exceptions\NotEqualException.cs (1)
22
partial class NotEqualException :
XunitException
Sdk\Exceptions\NotInRangeException.cs (1)
18
partial class NotInRangeException :
XunitException
Sdk\Exceptions\NotNullException.cs (1)
18
partial class NotNullException :
XunitException
Sdk\Exceptions\NotSameException.cs (1)
15
partial class NotSameException :
XunitException
Sdk\Exceptions\NotStrictEqualException.cs (1)
18
partial class NotStrictEqualException :
XunitException
Sdk\Exceptions\NullException.cs (1)
22
partial class NullException :
XunitException
Sdk\Exceptions\ProperSubsetException.cs (1)
18
partial class ProperSubsetException :
XunitException
Sdk\Exceptions\ProperSupersetException.cs (1)
18
partial class ProperSupersetException :
XunitException
Sdk\Exceptions\PropertyChangedException.cs (1)
17
partial class PropertyChangedException :
XunitException
Sdk\Exceptions\RaisesAnyException.cs (1)
18
partial class RaisesAnyException :
XunitException
Sdk\Exceptions\RaisesException.cs (1)
18
partial class RaisesException :
XunitException
Sdk\Exceptions\SameException.cs (1)
18
partial class SameException :
XunitException
Sdk\Exceptions\SingleException.cs (1)
19
partial class SingleException :
XunitException
Sdk\Exceptions\SkipException.cs (1)
17
partial class SkipException :
XunitException
Sdk\Exceptions\StartsWithException.cs (1)
19
partial class StartsWithException :
XunitException
Sdk\Exceptions\StrictEqualException.cs (1)
18
partial class StrictEqualException :
XunitException
Sdk\Exceptions\SubsetException.cs (1)
18
partial class SubsetException :
XunitException
Sdk\Exceptions\SupersetException.cs (1)
18
partial class SupersetException :
XunitException
Sdk\Exceptions\ThrowsAnyException.cs (1)
21
partial class ThrowsAnyException :
XunitException
Sdk\Exceptions\ThrowsException.cs (1)
21
partial class ThrowsException :
XunitException
Sdk\Exceptions\TrueException.cs (1)
18
partial class TrueException :
XunitException
21 instantiations of XunitException
IIS.NewHandler.FunctionalTests (1)
NewHandlerTests.cs (1)
42
throw new
XunitException
($"Could not find aspnetcorev2.dll loaded in process {result.HostProcess.ProcessName}");
IIS.NewShim.FunctionalTests (1)
NewShimTests.cs (1)
36
throw new
XunitException
($"Could not find aspnetcorev2_inprocess.dll loaded in process {result.HostProcess.ProcessName}");
IIS.Tests (1)
StrictTestServerTests.cs (1)
22
throw new
XunitException
($"Unexpected log: {writeContext}");
Microsoft.Arcade.Test.Common (1)
MockEngine.cs (1)
59
throw new
XunitException
("Task error: " + e.Message);
Microsoft.AspNetCore.App.UnitTests (3)
AssertEx.cs (3)
14
throw new
XunitException
($"Expected directory to exist at {path} but it did not");
22
throw new
XunitException
($"Expected file to exist at {path} but it did not");
30
throw new
XunitException
($"File should not exist at {path}");
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (2)
220
throw new
XunitException
("Invalid Set-Cookie header!");
1475
throw new
XunitException
("Invalid Set-Cookie header!");
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
HtmlGenerationWithCultureTest.cs (1)
173
throw new
XunitException
($"Unexpected correlation Id, reading values from document:{Environment.NewLine}{documentContent}");
Microsoft.AspNetCore.Routing.Tests (7)
Matching\MatcherAssert.cs (7)
21
throw new
XunitException
(
48
throw new
XunitException
("Keys and Values must be the same length.");
63
throw new
XunitException
($"Was expected to match '{expected.DisplayName}' but did not match.");
70
throw new
XunitException
("RouteValues is null.");
75
throw new
XunitException
(
87
throw new
XunitException
(
98
throw new
XunitException
(
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
MessageBodyTests.cs (2)
1452
throw new
XunitException
();
1492
throw new
XunitException
();
TestHelpers\AssertExtensions.cs (2)
15
throw new
XunitException
($"Expected length to be {expected.Length} but was {actual.Length}");
22
throw new
XunitException
($@"Expected byte at index {i} to be '{expected[i]}' but was '{actual[i]}'");
22 references to XunitException
Microsoft.AspNetCore.FunctionalTests (5)
WebHostFunctionalTests.cs (5)
49
catch (
XunitException
)
74
catch (
XunitException
)
98
catch (
XunitException
)
175
catch (
XunitException
)
195
catch (
XunitException
)
Microsoft.AspNetCore.Identity.FunctionalTests (2)
LoginTests.cs (2)
174
await Assert.ThrowsAnyAsync<
XunitException
>(() => UserStories.LoginExistingUserAsync(newClient, userName, password));
199
await Assert.ThrowsAnyAsync<
XunitException
>(() => UserStories.LoginExistingUserAsync(newClient, userName, password));
ServerComparison.FunctionalTests (12)
HelloWorldTest.cs (1)
76
catch (
XunitException
)
NtlmAuthenticationTest.cs (1)
99
catch (
XunitException
)
ResponseCompressionTests.cs (3)
152
catch (
XunitException
)
177
catch (
XunitException
)
210
catch (
XunitException
)
ResponseTests.cs (7)
114
catch (
XunitException
)
143
catch (
XunitException
)
163
catch (
XunitException
)
188
catch (
XunitException
)
213
catch (
XunitException
)
238
catch (
XunitException
)
258
catch (
XunitException
)
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
283
catch (
XunitException
)
xunit.assert (2)
Sdk\Exceptions\XunitException.cs (2)
25
/// Initializes a new instance of the <see cref="
XunitException
"/> class.
38
/// Initializes a new instance of the <see cref="
XunitException
"/> class.