78 references to Fail
Aspire.Workload.Tests (3)
WorkloadTestsBase.cs (3)
83Assert.Fail($"Row with unknown name found: {resourceName}"); 135Assert.Fail($"Unexpected endpoint found: {endpointFound} for resource named {resourceName}. Expected endpoints: {string.Join(',', expectedEndpoints)}"); 152Assert.Fail($"Expected rows not found: {string.Join(", ", expectedRowsTable.Keys.Except(foundNames))}");
Client.ClientBase.IntegrationTests (3)
MessageInspectorTests.4.4.0.cs (1)
101Assert.Fail(String.Format("One or both of the expected headers were not found.\nHeader: \"authType\" had value: {0}\nHeader: \"HttpRequestHeader.Authorization\" had value: {1}", authorizationHeaderValue, authTypeHeaderValue));
SessionTests.cs (2)
190Assert.Fail("channel.MethodCTerminating() should throw, but it didn't."); 202Assert.Fail($"channel.MethodCTerminating() threw unexpected exception: {e}");
Client.ExpectedExceptions.IntegrationTests (9)
ExpectedExceptionTests.4.0.0.cs (1)
276Assert.Fail("The Opening event timed out waiting for operations to queue, which was not expected for this test.");
ExpectedExceptionTests.4.1.0.cs (8)
119Assert.Fail(fullExceptionMessage); 354Assert.Fail("Expected: SecurityNegotiationException, Actual: no exception"); 363Assert.Fail(string.Format("Expected type SecurityNegotiationException, Actual: {0}", exceptionType)); 396Assert.Fail("Expected: SecurityNegotiationException, Actual: no exception"); 405Assert.Fail(string.Format("Expected type SecurityNegotiationException, Actual: {0}", exceptionType)); 443Assert.Fail("Expected: SecurityNegotiationException, Actual: no exception"); 452Assert.Fail(string.Format("Expected type SecurityNegotiationException, Actual: {0}", exceptionType)); 526Assert.Fail("The Opening event timed out waiting for operations to queue, which was not expected for this test.");
Contract.XmlSerializer.IntegrationTests (10)
XmlSerializerFormatTest.cs (10)
95Assert.Fail($"Test Failed, caught unexpected exception.\nException: {exception.ToString()}\nException Message: {exception.Message}"); 117Assert.Fail($"Test Failed, caught unexpected exception.\nException: {exception.ToString()}\nException Message: {exception.Message}"); 149Assert.Fail(ex.Message); 197Assert.Fail(ex.Message); 245Assert.Fail(ex.Message); 293Assert.Fail(ex.Message); 349Assert.Fail(ex.Message); 406Assert.Fail(ex.Message); 463Assert.Fail(ex.Message); 501Assert.Fail(ex.Message);
dotnet-svcutil.xmlserializer.IntegrationTests (10)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (10)
95Assert.Fail($"Test Failed, caught unexpected exception.\nException: {exception.ToString()}\nException Message: {exception.Message}"); 117Assert.Fail($"Test Failed, caught unexpected exception.\nException: {exception.ToString()}\nException Message: {exception.Message}"); 149Assert.Fail(ex.Message); 197Assert.Fail(ex.Message); 245Assert.Fail(ex.Message); 293Assert.Fail(ex.Message); 349Assert.Fail(ex.Message); 406Assert.Fail(ex.Message); 463Assert.Fail(ex.Message); 501Assert.Fail(ex.Message);
Infrastructure.IntegrationTests (1)
OSAndFrameworkTests.4.1.1.cs (1)
66Assert.Fail(string.Format("Detected the current Runtime Identifier as: '{0}'\n" +
InteropTests (2)
src\Shared\Process\ProcessEx.cs (2)
199Assert.Fail($"Process {_process.ProcessName} with pid: {_process.Id} has not finished running."); 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Microsoft.Arcade.Test.Common (4)
AssertEx.cs (4)
206Assert.Fail(assertMessage); 309Assert.Fail(message); 314Assert.Fail(string.Format(format, args)); 337Assert.Fail(GetAssertMessage(expected, actual, escapeQuotes, expectedValueSourcePath, expectedValueSourceLine));
Microsoft.AspNetCore.App.Analyzers.Test (3)
Http\HeaderDictionaryIndexerAnalyzerTests.cs (1)
190Assert.Fail($"A mapping for property '{propertyName}' on IHeaderDictionary must be added to {nameof(HeaderDictionaryIndexerAnalyzer)}.{nameof(HeaderDictionaryIndexerAnalyzer.PropertyMapping)}.");
Infrastructure\AmbiguousRoutePatternComparerTests.cs (2)
93Assert.Fail("Failed to convert text to token."); 99Assert.Fail("Failed to parse virtual chars to route pattern.");
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentResultTest.cs (1)
495Assert.Fail("Timeout elapsed without content being written");
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
369Assert.Fail("RegenerateBaselines=true. Do not merge PRs with this set.");
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
369Assert.Fail("RegenerateBaselines=true. Do not merge PRs with this set.");
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheTests.cs (1)
1020Assert.Fail($"Unexpected length: {len.Value}");
Microsoft.AspNetCore.Server.IntegrationTesting (2)
src\Shared\Process\ProcessEx.cs (2)
199Assert.Fail($"Process {_process.ProcessName} with pid: {_process.Id} has not finished running."); 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
HeartbeatTests.cs (2)
90Assert.Fail($"{roundedActualMs} is smaller than wait time of {intervalMs}."); 95Assert.Fail($"{roundedActualMs} is much larger than wait time of {intervalMs}.");
Microsoft.AspNetCore.Server.Kestrel.Tests (4)
KestrelConfigurationLoaderTests.cs (4)
1794serverOptions.ConfigurationLoader.LocalhostEndpoint(7000, _ => Assert.Fail("New endpoints should not be added after ProcessEndpointsToAdd")); 1817serverOptions.ConfigurationLoader.LocalhostEndpoint(7000, _ => Assert.Fail("New endpoints should not be added after Load")); 1829serverOptions.ConfigurationLoader.LocalhostEndpoint(7000, _ => Assert.Fail("New endpoints should not be added by LoadInternal")); 1842serverOptions.ConfigurationLoader.LocalhostEndpoint(7000, _ => Assert.Fail("New endpoints should not be added by Reload"));
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\VerifyNoErrorScope.cs (1)
64Assert.Fail(errorMessage);
Microsoft.DotNet.NuGetRepack.Tests (4)
TestHelpers\AssertEx.cs (4)
164Assert.Fail(GetAssertMessage(expected, actual, escapeQuotes, expectedValueSourcePath, expectedValueSourceLine)); 222Assert.Fail(assertMessage); 325Assert.Fail(message); 330Assert.Fail(string.Format(format, args));
Microsoft.DotNet.XUnitAssert.Tests (2)
FailAssertsTests.cs (2)
9 var ex = Record.Exception(() => Assert.Fail()); 18 var ex = Record.Exception(() => Assert.Fail("This is a user message"));
Microsoft.Extensions.ApiDescription.Client.Tests (2)
src\Shared\Process\ProcessEx.cs (2)
199Assert.Fail($"Process {_process.ProcessName} with pid: {_process.Id} has not finished running."); 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
System.ServiceModel.Primitives.Tests (1)
Channels\CustomBindingTest.cs (1)
35Assert.Fail(String.Format("Unexpected exception was caught: {0}", ex.ToString()));
Templates.Blazor.Tests (2)
src\Shared\Process\ProcessEx.cs (2)
199Assert.Fail($"Process {_process.ProcessName} with pid: {_process.Id} has not finished running."); 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\Process\ProcessEx.cs (2)
199Assert.Fail($"Process {_process.ProcessName} with pid: {_process.Id} has not finished running."); 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\Process\ProcessEx.cs (2)
199Assert.Fail($"Process {_process.ProcessName} with pid: {_process.Id} has not finished running."); 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Templates.Mvc.Tests (2)
src\Shared\Process\ProcessEx.cs (2)
199Assert.Fail($"Process {_process.ProcessName} with pid: {_process.Id} has not finished running."); 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Templates.Tests (2)
src\Shared\Process\ProcessEx.cs (2)
199Assert.Fail($"Process {_process.ProcessName} with pid: {_process.Id} has not finished running."); 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
xunit.assert (1)
Sdk\Exceptions\FailException.cs (1)
23 /// the user calls <see cref="Assert.Fail"/>.