63 references to XunitException
IIS.NewHandler.FunctionalTests (1)
NewHandlerTests.cs (1)
41throw new XunitException($"Could not find aspnetcorev2.dll loaded in process {result.HostProcess.ProcessName}");
IIS.NewShim.FunctionalTests (1)
NewShimTests.cs (1)
35throw new XunitException($"Could not find aspnetcorev2_inprocess.dll loaded in process {result.HostProcess.ProcessName}");
IIS.Tests (1)
StrictTestServerTests.cs (1)
22throw new XunitException($"Unexpected log: {writeContext}");
Microsoft.Arcade.Test.Common (1)
MockEngine.cs (1)
56throw new XunitException("Task error: " + e.Message);
Microsoft.AspNetCore.App.UnitTests (3)
AssertEx.cs (3)
14throw new XunitException($"Expected directory to exist at {path} but it did not"); 22throw new XunitException($"Expected file to exist at {path} but it did not"); 30throw new XunitException($"File should not exist at {path}");
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (2)
220throw new XunitException("Invalid Set-Cookie header!"); 1475throw new XunitException("Invalid Set-Cookie header!");
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
HtmlGenerationWithCultureTest.cs (1)
179throw new XunitException($"Unexpected correlation Id, reading values from document:{Environment.NewLine}{documentContent}");
Microsoft.AspNetCore.Routing.Tests (7)
Matching\MatcherAssert.cs (7)
21throw new XunitException( 48throw new XunitException("Keys and Values must be the same length."); 63throw new XunitException($"Was expected to match '{expected.DisplayName}' but did not match."); 70throw new XunitException("RouteValues is null."); 75throw new XunitException( 87throw new XunitException( 98throw new XunitException(
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
TestHelpers\AssertExtensions.cs (2)
15throw new XunitException($"Expected length to be {expected.Length} but was {actual.Length}"); 22throw new XunitException($@"Expected byte at index {i} to be '{expected[i]}' but was '{actual[i]}'");
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Ordering\LongRunningNonMutatingRequestHandler.cs (1)
43throw new XunitException("Somehow we got past an infinite delay without cancelling. This is unexpected");
Microsoft.CodeAnalysis.Test.Utilities (2)
Assert\AssertEx.cs (2)
551throw new Xunit.Sdk.XunitException(message); 556throw new Xunit.Sdk.XunitException(string.Format(format, args));
Microsoft.DotNet.XUnitAssert.Tests (2)
Sdk\Exceptions\XunitExceptionTests.cs (2)
9 var ex = new XunitException("UserMessage"); 17 var ex = new XunitException("UserMessage");
Microsoft.Extensions.AI.Abstractions.Tests (6)
AssertExtensions.cs (3)
71throw new XunitException($"Expected parameter '{expectedEntry.Key}' not found in actual value."); 84throw new XunitException($"Actual value contains additional parameters {string.Join(", ", extraParameters)} not found in expected value."); 107throw new XunitException(message);
test\Shared\JsonSchemaExporter\SchemaTestHelpers.cs (3)
21throw new XunitException($""" 40throw new XunitException($""" 57throw new XunitException($"""
Microsoft.Extensions.AI.AzureAIInference.Tests (3)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (3)
71throw new XunitException($"Expected parameter '{expectedEntry.Key}' not found in actual value."); 84throw new XunitException($"Actual value contains additional parameters {string.Join(", ", extraParameters)} not found in expected value."); 107throw new XunitException(message);
Microsoft.Extensions.AI.OpenAI.Tests (3)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (3)
71throw new XunitException($"Expected parameter '{expectedEntry.Key}' not found in actual value."); 84throw new XunitException($"Actual value contains additional parameters {string.Join(", ", extraParameters)} not found in expected value."); 107throw new XunitException(message);
Microsoft.Extensions.AI.Tests (3)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (3)
71throw new XunitException($"Expected parameter '{expectedEntry.Key}' not found in actual value."); 84throw new XunitException($"Actual value contains additional parameters {string.Join(", ", extraParameters)} not found in expected value."); 107throw new XunitException(message);
Shared.Tests (3)
JsonSchemaExporter\SchemaTestHelpers.cs (3)
21throw new XunitException($""" 40throw new XunitException($""" 57throw new XunitException($"""
xunit.assert (21)
Sdk\Exceptions\AllException.cs (1)
41 base("Assert.All() Failure")
Sdk\Exceptions\AssertCollectionCountException.cs (1)
25 base($"The collection contained {actualCount} matching element(s) instead of {expectedCount}.")
Sdk\Exceptions\CollectionException.cs (1)
50 base("Assert.Collection() Failure")
Sdk\Exceptions\ContainsDuplicateException.cs (1)
35 base("Assert.Distinct() Failure")
Sdk\Exceptions\DoesNotMatchException.cs (1)
32 base($"Assert.DoesNotMatch() Failure:{Environment.NewLine}Regex: {expectedRegexPattern}{Environment.NewLine}Value: {actual}")
Sdk\Exceptions\EndsWithException.cs (1)
32 base($"Assert.EndsWith() Failure:{Environment.NewLine}Expected: {ShortenExpected(expected, actual) ?? "(null)"}{Environment.NewLine}Actual: {ShortenActual(expected, actual) ?? "(null)"}")
Sdk\Exceptions\FailException.cs (1)
22 base($"Assert.Fail(): {message}")
Sdk\Exceptions\InRangeException.cs (1)
33 base("Assert.InRange() Failure")
Sdk\Exceptions\MatchesException.cs (1)
32 base($"Assert.Matches() Failure:{Environment.NewLine}Regex: {expectedRegexPattern}{Environment.NewLine}Value: {actual}")
Sdk\Exceptions\MultipleException.cs (1)
25 base("Multiple failures were encountered:")
Sdk\Exceptions\NotEmptyException.cs (1)
21 base("Assert.NotEmpty() Failure")
Sdk\Exceptions\NotInRangeException.cs (1)
35 base("Assert.NotInRange() Failure")
Sdk\Exceptions\NotNullException.cs (1)
21 base("Assert.NotNull() Failure")
Sdk\Exceptions\NotSameException.cs (1)
21 base("Assert.NotSame() Failure")
Sdk\Exceptions\PropertyChangedException.cs (1)
23 base($"Assert.PropertyChanged failure: Property {propertyName} was not set")
Sdk\Exceptions\RaisesException.cs (2)
33 : base("(No event was raised)") 46 : base("(Raised event did not match expected event)")
Sdk\Exceptions\SingleException.cs (1)
20 : base(errorMessage)
Sdk\Exceptions\SkipException.cs (1)
23 : base($"{DynamicSkipToken.Value}{message}")
Sdk\Exceptions\StartsWithException.cs (1)
33 base($"Assert.StartsWith() Failure:{Environment.NewLine}Expected: {expected ?? "(null)"}{Environment.NewLine}Actual: {ShortenActual(expected, actual) ?? "(null)"}")
Sdk\Exceptions\XunitException.cs (1)
75 this(userMessage)