243 references to DoesNotContain
Aspire.Dashboard.Tests (1)
BrowserSecurityHeadersMiddlewareTests.cs (1)
29Assert.DoesNotContain("default-src", httpContext.Response.Headers.ContentSecurityPolicy.ToString());
Aspire.Hosting.Azure.Tests (1)
AzureBicepResourceTests.cs (1)
128Assert.DoesNotContain("resource x-y", bicep);
Aspire.Hosting.Tests (1)
DistributedApplicationTests.cs (1)
766Assert.DoesNotContain(httpsEndpoint.ToString().Trim('/'), urls);
Aspire.Microsoft.Data.SqlClient.Tests (2)
AspireSqlServerSqlClientExtensionsTests.cs (2)
70Assert.DoesNotContain("unused", connection.ConnectionString); 102Assert.DoesNotContain("unused", dataSource.ConnectionString);
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (2)
52Assert.DoesNotContain("unused", actualConnectionString); 72Assert.DoesNotContain("unused", actualConnectionString);
Aspire.Milvus.Client.Tests (1)
AspireMilvusExtensionTests.cs (1)
109Assert.DoesNotContain("unused", connection.Address);
Aspire.MySqlConnector.Tests (2)
AspireMySqlConnectorExtensionsTests.cs (2)
78Assert.DoesNotContain("unused", dataSource.ConnectionString); 110Assert.DoesNotContain("unused", dataSource.ConnectionString);
Aspire.NATS.Net.Tests (2)
AspireNatsClientExtensionsTests.cs (2)
86Assert.DoesNotContain("unused", connection.Opts.Url); 118Assert.DoesNotContain("unused", connection.Opts.Url);
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
AspireEFPostgreSqlExtensionsTests.cs (2)
62Assert.DoesNotContain("unused", actualConnectionString); 82Assert.DoesNotContain("unused", actualConnectionString);
Aspire.Npgsql.Tests (2)
AspirePostgreSqlNpgsqlExtensionsTests.cs (2)
70Assert.DoesNotContain("unused", dataSource.ConnectionString); 102Assert.DoesNotContain("unused", dataSource.ConnectionString);
Aspire.Oracle.EntityFrameworkCore.Tests (2)
AspireOracleEFCoreDatabaseExtensionsTests.cs (2)
53Assert.DoesNotContain("unused", actualConnectionString); 73Assert.DoesNotContain("unused", actualConnectionString);
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
AspireEFMySqlExtensionsTests.cs (2)
69Assert.DoesNotContain("unused", actualConnectionString); 91Assert.DoesNotContain("unused", actualConnectionString);
Aspire.StackExchange.Redis.Tests (2)
AspireRedisExtensionsTests.cs (2)
110Assert.DoesNotContain("unused", connection.Configuration); 143Assert.DoesNotContain("unused", connection.Configuration);
AuthSamples.FunctionalTests (10)
DynamicSchemeTests.cs (9)
57Assert.DoesNotContain("NewTwo", content); 64Assert.DoesNotContain("New1", content); 65Assert.DoesNotContain("NewOne", content); 67Assert.DoesNotContain("NewTwo", content); 73Assert.DoesNotContain("New1", content); 74Assert.DoesNotContain("NewOne", content); 75Assert.DoesNotContain("New2", content); 76Assert.DoesNotContain("NewTwo", content); 77Assert.DoesNotContain("UpdateTwo", content);
PathSchemeSelectionTests.cs (1)
93Assert.DoesNotContain("Logout", content);
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
1329Assert.DoesNotContain("Gets or sets the name of this app.", schema);
Diagnostics.EFCore.FunctionalTests (1)
DatabaseErrorPageMiddlewareTest.cs (1)
212Assert.DoesNotContain(StringsHelpers.GetResourceString("DatabaseErrorPage_AddMigrationCommandPMC").Replace(">", ">"), content);
Diagnostics.FunctionalTests (1)
StatusCodeSampleTest.cs (1)
52Assert.DoesNotContain(";", responseBody);
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (1)
79Assert.DoesNotContain("\r\n\r\n", contents);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
429Assert.DoesNotContain(@"\\?\", await _fixture.Client.GetStringAsync("/BasePath"));
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
848Assert.DoesNotContain("InvalidOperationException", content); 870Assert.DoesNotContain("InvalidOperationException", content); 1200Assert.DoesNotContain("shouldberemoved", await GetStringAsync(deploymentParameters, "/GetEnvironmentVariable?name=ASPNETCORE_IIS_HTTPAUTH"));
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
848Assert.DoesNotContain("InvalidOperationException", content); 870Assert.DoesNotContain("InvalidOperationException", content); 1200Assert.DoesNotContain("shouldberemoved", await GetStringAsync(deploymentParameters, "/GetEnvironmentVariable?name=ASPNETCORE_IIS_HTTPAUTH"));
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
848Assert.DoesNotContain("InvalidOperationException", content); 870Assert.DoesNotContain("InvalidOperationException", content); 1200Assert.DoesNotContain("shouldberemoved", await GetStringAsync(deploymentParameters, "/GetEnvironmentVariable?name=ASPNETCORE_IIS_HTTPAUTH"));
IISExpress.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (1)
79Assert.DoesNotContain("\r\n\r\n", contents);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
429Assert.DoesNotContain(@"\\?\", await _fixture.Client.GetStringAsync("/BasePath"));
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
848Assert.DoesNotContain("InvalidOperationException", content); 870Assert.DoesNotContain("InvalidOperationException", content); 1200Assert.DoesNotContain("shouldberemoved", await GetStringAsync(deploymentParameters, "/GetEnvironmentVariable?name=ASPNETCORE_IIS_HTTPAUTH"));
Microsoft.AspNetCore.Authentication.Core.Test (2)
AuthenticationPropertiesTests.cs (2)
325Assert.DoesNotContain("baz", json); 326Assert.DoesNotContain("quux", json);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (3)
UserJwtsTests.cs (3)
153Assert.DoesNotContain(DevJwtsDefaults.Scheme, appsettingsContent); 171Assert.DoesNotContain(DevJwtsDefaults.Scheme, appsettingsContent); 172Assert.DoesNotContain("Scheme2", appsettingsContent);
Microsoft.AspNetCore.Authentication.Test (25)
CookieTests.cs (11)
143Assert.DoesNotContain("; expires=", setCookie); 144Assert.DoesNotContain("; domain=", setCookie); 145Assert.DoesNotContain("; secure", setCookie); 276Assert.DoesNotContain("; expires=", setCookie); 277Assert.DoesNotContain("; domain=", setCookie); 278Assert.DoesNotContain("; secure", setCookie); 351Assert.DoesNotContain("; secure", setCookie); 400Assert.DoesNotContain(" domain=", setCookie2); 401Assert.DoesNotContain(" secure", setCookie2); 402Assert.DoesNotContain(" httponly", setCookie2); 403Assert.DoesNotContain(" extension", setCookie2);
OpenIdConnect\OpenIdConnectChallengeTests.cs (12)
79Assert.DoesNotContain("code_challenge=", res.Headers.Location.Query); 80Assert.DoesNotContain("code_challenge_method=", res.Headers.Location.Query); 107Assert.DoesNotContain("code_challenge=", res.Headers.Location.Query); 108Assert.DoesNotContain("code_challenge_method=", res.Headers.Location.Query); 126Assert.DoesNotContain(OpenIdConnectParameterNames.SkuTelemetry, res.Headers.Location.Query); 127Assert.DoesNotContain(OpenIdConnectParameterNames.VersionTelemetry, res.Headers.Location.Query); 727Assert.DoesNotContain("redirect_uri", res.Headers.Location.Query); 728Assert.DoesNotContain("scope", res.Headers.Location.Query); 729Assert.DoesNotContain("client_secret", res.Headers.Location.Query); 813Assert.DoesNotContain("request_uri=my_reference_value", res.Headers.Location.Query); 886Assert.DoesNotContain("scope", res.Headers.Location.Query); 921Assert.DoesNotContain("prompt", res.Headers.Location.Query);
OpenIdConnect\OpenIdConnectTests.cs (2)
183Assert.DoesNotContain(OpenIdConnectParameterNames.SkuTelemetry, res.Headers.Location.Query); 184Assert.DoesNotContain(OpenIdConnectParameterNames.VersionTelemetry, res.Headers.Location.Query);
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
RazorComponentResultTest.cs (2)
356Assert.DoesNotContain("blazor-ssr", html); 387Assert.DoesNotContain("blazor-ssr", html);
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (1)
HealthCheckMiddlewareTests.cs (1)
956Assert.DoesNotContain($"{nameof(HealthStatus)}.{nameof(HealthStatus.Healthy)}", exception.Message);
Microsoft.AspNetCore.Diagnostics.Tests (1)
DeveloperExceptionPageMiddlewareTest.cs (1)
299Assert.DoesNotContain("<html", responseText);
Microsoft.AspNetCore.Http.Tests (1)
ResponseCookiesTest.cs (1)
51Assert.DoesNotContain("secure", cookieHeaderValues[0]);
Microsoft.AspNetCore.HttpLogging.Tests (2)
W3CLoggingMiddlewareTests.cs (2)
101Assert.DoesNotContain(lines[3], "Snickerdoodle"); 146Assert.DoesNotContain("Snickerdoodle", lines[3]);
Microsoft.AspNetCore.Identity.InMemory.Test (4)
FunctionalTest.cs (4)
58Assert.DoesNotContain("; expires=", transaction2.SetCookie); 93Assert.DoesNotContain("; expires=", transaction2.SetCookie); 138Assert.DoesNotContain("; expires=", transaction2.SetCookie); 191Assert.DoesNotContain("; expires=", transaction2.SetCookie);
Microsoft.AspNetCore.Mvc.Core.Test (4)
Filters\MiddlewareFilterBuilderTest.cs (2)
220Assert.DoesNotContain(typeof(MiddlewareFilterBuilderTest).FullName, stack); 221Assert.DoesNotContain(nameof(EndMiddleware_PropagatesBackException_ToEarlierMiddleware), stack);
Formatters\JsonOutputFormatterTestBase.cs (1)
159Assert.DoesNotContain("}", content);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1020Assert.DoesNotContain(exception.Message, unexpectedMessage);
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
ErrorPageTests.cs (1)
71Assert.DoesNotContain(PreserveCompilationContextMessage, content);
RazorPagesTest.cs (1)
883Assert.DoesNotContain(validationError, content);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Formatters\JsonOutputFormatterTestBase.cs (1)
159Assert.DoesNotContain("}", content);
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
157Assert.DoesNotContain("; secure", values.First());
Microsoft.AspNetCore.Shared.Tests (3)
CommandLineApplicationTests.cs (3)
1034Assert.DoesNotContain("--points", help); 1035Assert.DoesNotContain("--smile", help); 1036Assert.DoesNotContain("name", help);
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
2704Assert.DoesNotContain(nameof(RequestDelegate), m);
Microsoft.Build.Engine.OM.UnitTests (4)
Construction\ConstructionEditing_Tests.cs (1)
3242Assert.DoesNotContain("<Import", updatedContents);
Construction\ProjectFormatting_Tests.cs (1)
707Assert.DoesNotContain(declaration, actualContents);
Construction\ProjectUsingTaskElement_Tests.cs (1)
530Assert.DoesNotContain("TaskFactory", usingTask.ContainingProject.RawXml);
Construction\UsingTaskBodyElement_Tests.cs (1)
121Assert.DoesNotContain("Evaluate", body.ContainingProject.RawXml);
Microsoft.Build.Engine.UnitTests (12)
BackEnd\MSBuild_Tests.cs (3)
272Assert.DoesNotContain(error, logger.FullLog); 310Assert.DoesNotContain(error, logger.FullLog); 360Assert.DoesNotContain(error, logger.FullLog);
Construction\SolutionProjectGenerator_Tests.cs (1)
1137Assert.DoesNotContain("{A6F99D27-47B9-4EA4-BFC9-25157CBDC281}", solutionConfigurationContents);
FileLogger_Tests.cs (1)
423Assert.DoesNotContain(message, log);
FileMatcher_Tests.cs (3)
1248Assert.DoesNotContain("**", result); 2379Assert.DoesNotContain(filespec, "/"); 2382Assert.DoesNotContain(excludeFilespec, "/");
Parser_Tests.cs (4)
495Assert.DoesNotContain("MSB4130:", ml.FullLog); // "No need to warn for this expression - (a) == 1 and $(b) == 2 and $(c) == 3." 506Assert.DoesNotContain("MSB4130:", ml.FullLog); // "No need to warn for this expression - (a) == 1 or $(b) == 2 or $(c) == 3." 517Assert.DoesNotContain("MSB4130:", ml.FullLog); // "No need to warn for this expression - ($(a) == 1 and $(b) == 2) or $(c) == 3." 528Assert.DoesNotContain("MSB4130:", ml.FullLog); // "No need to warn for this expression - ($(a) == 1 or $(b) == 2) and $(c) == 3."
Microsoft.Build.Tasks.UnitTests (11)
MakeDir_Tests.cs (2)
159Assert.DoesNotContain( 216Assert.DoesNotContain(
MSBuild_Tests.cs (3)
251Assert.DoesNotContain("MSB3202", logger.FullLog); // project file not found error 287Assert.DoesNotContain("MSB3202", logger.FullLog); // project file not found error 336Assert.DoesNotContain(error, logger.FullLog);
ResolveSDKReference_Tests.cs (1)
346Assert.DoesNotContain("RuntimeReferenceOnly", reference.ResolvedItem.MetadataNames.ToString());
ResourceHandling\GenerateResource_Tests.cs (4)
1555Assert.DoesNotContain("namespace", File.ReadAllText(t.StronglyTypedFileName)); 3809Assert.DoesNotContain(String.Format(AssemblyResources.GetString(messageID), replacements), ((MockEngine)t.BuildEngine).Log); 3817Assert.DoesNotContain(message, ((MockEngine)t.BuildEngine).Log); 4270Assert.DoesNotContain("namespace " + resourcesNamespace.ToLower(), Utilities.ReadFileContent(STRFile).ToLower());
TelemetryTaskTests.cs (1)
94Assert.DoesNotContain("EE2493A167D24F00996DE7C8E769EAE6", engine.Log);
Microsoft.Build.Utilities.UnitTests (1)
TrackedDependencies\MockEngine.cs (1)
140Assert.DoesNotContain(contains.ToUpperInvariant(), _upperLog);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (19)
CommandLineTests.cs (4)
2810Assert.DoesNotContain("warning", outWriter.ToString()); 13419Assert.DoesNotContain(diagnosticId, outWriter.ToString()); 13663Assert.DoesNotContain(descriptor.Id.ToString(), outWriter.ToString()); 15297Assert.DoesNotContain(diagnosticId, output);
SarifErrorLoggerTests.cs (9)
119Assert.DoesNotContain("CS0169", actualConsoleOutput); 189Assert.DoesNotContain("Category1", actualConsoleOutput); 190Assert.DoesNotContain("Category2", actualConsoleOutput); 224Assert.DoesNotContain("Category1", actualConsoleOutput); 225Assert.DoesNotContain("Category2", actualConsoleOutput); 259Assert.DoesNotContain("Category1", actualConsoleOutput); 260Assert.DoesNotContain("Category2", actualConsoleOutput); 294Assert.DoesNotContain("Category1", actualConsoleOutput); 295Assert.DoesNotContain("Category2", actualConsoleOutput);
SarifV2ErrorLoggerTests.cs (6)
459Assert.DoesNotContain("Category1", actualConsoleOutput); 460Assert.DoesNotContain("Category2", actualConsoleOutput); 541Assert.DoesNotContain("Category1", actualConsoleOutput); 542Assert.DoesNotContain("Category2", actualConsoleOutput); 611Assert.DoesNotContain("Category1", actualConsoleOutput); 612Assert.DoesNotContain("Category2", actualConsoleOutput);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (1)
2624Assert.DoesNotContain("__StaticArrayInitTypeSize=", il);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\AnalyzerLoadFailureTests.cs (1)
43Assert.DoesNotContain(analyzerTypeName, diagnostic.Message);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (2)
2617Assert.DoesNotContain("warning", outWriter.ToString()) 10489Assert.DoesNotContain(diagnosticId, output)
SarifErrorLoggerTests.vb (1)
141Assert.DoesNotContain("BC42024", actualConsoleOutput)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
2948Assert.DoesNotContain(@"<Analyzer Include=""..\Analyzers\MyAnalyzer.dll", projFileText); 2971Assert.DoesNotContain(@"<ProjectReference Include=""..\CSharpProject\CSharpProject.csproj"">", projFileText);
Microsoft.DotNet.Build.Tasks.Workloads.Tests (11)
CreateVisualStudioWorkloadSetTests.cs (1)
74Assert.DoesNotContain("vs.package.chip=x64", msiSwr);
CreateVisualStudioWorkloadTests.cs (4)
132Assert.DoesNotContain("vs.package.machineArch", manifestMsiSwr); 133Assert.DoesNotContain("vs.package.outOfSupport", manifestMsiSwr); 148Assert.DoesNotContain("vs.package.machineArch", packMsiSwr); 253Assert.DoesNotContain("vs.package.chip", manifestMsiSwr);
SwixComponentTests.cs (5)
131Assert.DoesNotContain(@"vs.dependency id=Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm", componentSwr); 132Assert.DoesNotContain(@"vs dependency id=Microsoft.NETCore.App.Runtime.AOT.Cross.ios-arm64", componentSwr); 133Assert.DoesNotContain(@"vs dependency id=Microsoft.NETCore.App.Runtime.AOT.Cross.iossimulator-arm64", componentSwr); 134Assert.DoesNotContain(@"vs dependency id=Microsoft.NETCore.App.Runtime.AOT.Cross.iossimulator-x64", componentSwr); 135Assert.DoesNotContain(@"vs dependency id=Microsoft.NETCore.App.Runtime.AOT.Cross.iossimulator-x86", componentSwr);
SwixPackageTests.cs (1)
64Assert.DoesNotContain("vs.package.productArch", msiSwr);
Microsoft.DotNet.Open.Api.Tools.Tests (7)
OpenApiAddURLTests.cs (3)
379Assert.DoesNotContain( 437Assert.DoesNotContain("<PackageReference Include=\"NSwag.ApiDescription.Client\" Version=\"", content); 438Assert.DoesNotContain($@"<OpenApiReference", content);
OpenApiRemoveTests.cs (4)
54Assert.DoesNotContain($"<OpenApiReference Include=\"{nswagJsonFile}\"", content); 96Assert.DoesNotContain($"<OpenApiReference", removedContent); 143Assert.DoesNotContain($"<OpenApiProjectReference Include=\"{refProjFile}\"", content); 184Assert.DoesNotContain($"<OpenApiReference Include=\"{nswagJsonFile}\"", content);
Microsoft.DotNet.XUnitAssert.Tests (7)
StringAssertsTests.cs (7)
152 Assert.DoesNotContain("hey", "Hello, world!"); 168 Assert.DoesNotContain("WORLD", "Hello, world!"); 198 verify(() => Assert.DoesNotContain("world", "Hello, world!")); 214 Assert.DoesNotContain("foo", (string?)null); 234 verify(() => Assert.DoesNotContain("world", "Hello, world from a very long string that will end up being truncated")); 264 verify(() => Assert.DoesNotContain("world", "This is a relatively long string that has 'Hello, world' placed in the middle so that we can dual trunaction")); 294 verify(() => Assert.DoesNotContain("world", "This is a relatively long string that will from the front truncated, just to say 'Hello, world'"));
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (2)
292Assert.DoesNotContain(nameof(Animal.FullName), message.Text); // The JSO uses snake_case 294Assert.DoesNotContain(nameof(Species.Tiger), message.Text); // The JSO doesn't use enum-to-string conversion
Microsoft.Extensions.ApiDescription.Client.Tests (7)
TargetTest.cs (7)
82Assert.DoesNotContain("TypeScriptCompile:", process.Output); 102Assert.DoesNotContain(" Compile:", process.Output); 129Assert.DoesNotContain("TypeScriptCompile:", process.Output); 157Assert.DoesNotContain("TypeScriptCompile:", process.Output); 461Assert.DoesNotContain("GenerateNSwagCSharp ", secondProcess.Output); 469Assert.DoesNotContain("GenerateNSwagCSharp ", thirdProcess.Output); 489Assert.DoesNotContain("GenerateNSwagCSharp ", process.Output);
Microsoft.Extensions.Compliance.Redaction.Tests (1)
ErasingRedactorTests.cs (1)
49Assert.DoesNotContain(input, bufferString);
Microsoft.Extensions.SecretManager.Tools.Tests (2)
SecretManagerTests.cs (2)
338Assert.DoesNotContain(Resources.FormatError_ProjectMissingId(project), _console.GetOutput()); 339Assert.DoesNotContain("--help", _console.GetOutput());
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointTests.cs (1)
31Assert.DoesNotContain(":0", epString);
Microsoft.Extensions.Telemetry.Tests (4)
Logging\ExtendedLoggerTests.cs (4)
509Assert.DoesNotContain("EM1", stackTrace); 510Assert.DoesNotContain("EM2", stackTrace); 511Assert.DoesNotContain("EM3", stackTrace); 512Assert.DoesNotContain("EM4", stackTrace);
Microsoft.Gen.Logging.Generated.Tests (10)
SensitiveRecordTests.cs (10)
20Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, logRecord.Message); 22Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, x.Value)); 32Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, logRecord.Message); 34Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, x.Value)); 49Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, logRecord.Message); 51Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, x.Value)); 66Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, logRecord.Message); 68Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, x.Value)); 83Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, logRecord.Message); 85Assert.All(logRecord.StructuredState, x => Assert.DoesNotContain(SensitiveRecordExtensions.Sensitive, x.Value));
ServerComparison.FunctionalTests (1)
NtlmAuthenticationTest.cs (1)
72Assert.DoesNotContain("NTLM", response.Headers.WwwAuthenticate.ToString());
System.Windows.Forms.Tests (11)
System\Windows\Forms\RichTextBoxTests.cs (10)
2873Assert.DoesNotContain("text", control.Rtf); 3233Assert.DoesNotContain("ex", rtf1); 3380Assert.DoesNotContain("text", control.Rtf); 7062Assert.DoesNotContain("Hello World", control.Rtf); 7075Assert.DoesNotContain("Hello World", control.Rtf); 7295Assert.DoesNotContain("Hello World", control.Rtf); 7311Assert.DoesNotContain("Hello World", control.Rtf); 8633Assert.DoesNotContain("OldText", control.Rtf); 8720Assert.DoesNotContain("OldText", control.Rtf); 8752Assert.DoesNotContain("OldText", control.Rtf);
System\Windows\Forms\WindowsFormsSynchronizationContextTests.cs (1)
163Assert.DoesNotContain("System.Delegate.DynamicInvokeImpl", stackTrace);
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
338Assert.DoesNotContain("https://", applicationUrl.GetString());
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
338Assert.DoesNotContain("https://", applicationUrl.GetString());
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
338Assert.DoesNotContain("https://", applicationUrl.GetString());
Templates.Mvc.Tests (17)
BlazorTemplateTest.cs (6)
65Assert.DoesNotContain("Microsoft.VisualStudio.Web.CodeGeneration.Design", projectFileContents); 66Assert.DoesNotContain("Microsoft.EntityFrameworkCore.Tools.DotNet", projectFileContents); 67Assert.DoesNotContain("Microsoft.Extensions.SecretManager.Tools", projectFileContents); 71Assert.DoesNotContain("Microsoft.EntityFrameworkCore.Tools", projectFileContents); 72Assert.DoesNotContain("app.db", projectFileContents); 80Assert.DoesNotContain("app.db", projectFileContents);
MvcTemplateTest.cs (5)
70Assert.DoesNotContain("app.db", projectFileContents); 71Assert.DoesNotContain("Microsoft.EntityFrameworkCore.Tools", projectFileContents); 72Assert.DoesNotContain("Microsoft.VisualStudio.Web.CodeGeneration.Design", projectFileContents); 73Assert.DoesNotContain("Microsoft.EntityFrameworkCore.Tools.DotNet", projectFileContents); 74Assert.DoesNotContain("Microsoft.Extensions.SecretManager.Tools", projectFileContents);
RazorPagesTemplateTest.cs (5)
62Assert.DoesNotContain("app.db", projectFileContents); 63Assert.DoesNotContain("Microsoft.EntityFrameworkCore.Tools", projectFileContents); 64Assert.DoesNotContain("Microsoft.VisualStudio.Web.CodeGeneration.Design", projectFileContents); 65Assert.DoesNotContain("Microsoft.EntityFrameworkCore.Tools.DotNet", projectFileContents); 66Assert.DoesNotContain("Microsoft.Extensions.SecretManager.Tools", projectFileContents);
src\ProjectTemplates\Shared\Project.cs (1)
338Assert.DoesNotContain("https://", applicationUrl.GetString());
Templates.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
338Assert.DoesNotContain("https://", applicationUrl.GetString());