55 references to DoesNotContain
InteractiveHost.UnitTests (1)
InteractiveHostDesktopTests.cs (1)
978Assert.DoesNotContain("Unexpected", error, StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (6)
DataProtectionProviderTests.cs (6)
43Assert.DoesNotContain("Windows DPAPI", fileText, StringComparison.Ordinal); 80Assert.DoesNotContain("Warning: the key below is in an unencrypted form.", fileText, StringComparison.Ordinal); 111Assert.DoesNotContain("Warning: the key below is in an unencrypted form.", fileText, StringComparison.Ordinal); 157Assert.DoesNotContain("Warning: the key below is in an unencrypted form.", fileText, StringComparison.Ordinal); 237Assert.DoesNotContain("Warning: the key below is in an unencrypted form.", fileText, StringComparison.Ordinal); 308Assert.DoesNotContain("Warning: the key below is in an unencrypted form.", fileText, StringComparison.Ordinal);
Microsoft.AspNetCore.DataProtection.Tests (3)
XmlEncryption\CertificateXmlEncryptionTests.cs (1)
52Assert.DoesNotContain("265ee4ea-ade2-43b1-b706-09b259e58b6b", encryptedXmlInfo.EncryptedElement.ToString(), StringComparison.OrdinalIgnoreCase);
XmlEncryption\DpapiNGXmlEncryptionTests.cs (1)
25Assert.DoesNotContain("265ee4ea-ade2-43b1-b706-09b259e58b6b", encryptedXmlInfo.EncryptedElement.ToString(), StringComparison.OrdinalIgnoreCase);
XmlEncryption\DpapiXmlEncryptionTests.cs (1)
27Assert.DoesNotContain("265ee4ea-ade2-43b1-b706-09b259e58b6b", encryptedXmlInfo.EncryptedElement.ToString(), StringComparison.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Rendering\HtmlHelperTextAreaTest.cs (1)
38Assert.DoesNotContain(@"placeholder=""HtmlEncode[[placeholder]]""", result, StringComparison.Ordinal);
Rendering\HtmlHelperTextBoxTest.cs (1)
56Assert.DoesNotContain(@"placeholder=""HtmlEncode[[placeholder]]""", result, StringComparison.Ordinal);
Microsoft.Build.Engine.UnitTests (1)
TypeLoader_Tests.cs (1)
222Assert.DoesNotContain(successfulMessage, scriptOutput, StringComparison.OrdinalIgnoreCase);
Microsoft.Build.Utilities.UnitTests (1)
MockEngine.cs (1)
130internal void AssertLogDoesntContain(string contains) => Assert.DoesNotContain(contains, Log, StringComparison.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (35)
CommandLineTests.cs (35)
3521Assert.DoesNotContain("Warning01", outWriter.ToString(), StringComparison.Ordinal); 3532Assert.DoesNotContain("Warning01", outWriter.ToString(), StringComparison.Ordinal); 8416Assert.DoesNotContain(source, outWriter.ToString(), StringComparison.Ordinal); 9545Assert.DoesNotContain(CodeAnalysisResources.AnalyzerExecutionTimeColumnHeader, output, StringComparison.Ordinal); 9546Assert.DoesNotContain(new WarningDiagnosticAnalyzer().ToString(), output, StringComparison.Ordinal); 9712Assert.DoesNotContain("CS2038", outWriter.ToString(), StringComparison.Ordinal); 9717Assert.DoesNotContain("CS2038", outWriter.ToString(), StringComparison.Ordinal); 9722Assert.DoesNotContain("CS2038", outWriter.ToString(), StringComparison.Ordinal); 10020Assert.DoesNotContain(errorMessage, output, StringComparison.Ordinal); 10025Assert.DoesNotContain(errorMessage, output, StringComparison.Ordinal); 10030Assert.DoesNotContain(errorMessage, output, StringComparison.Ordinal); 10599Assert.DoesNotContain("hidden", output, StringComparison.Ordinal); 10603Assert.DoesNotContain("info", output, StringComparison.Ordinal); 10614Assert.DoesNotContain("warning", output, StringComparison.Ordinal); 10623Assert.DoesNotContain("error", output, StringComparison.Ordinal); 12571Assert.DoesNotContain($"error CS0078", output, StringComparison.Ordinal); 12572Assert.DoesNotContain($"warning CS0078", output, StringComparison.Ordinal); 12623Assert.DoesNotContain($"warning CS1522", output, StringComparison.Ordinal); 12640Assert.DoesNotContain($"error CS1522", output, StringComparison.Ordinal); 12641Assert.DoesNotContain($"warning CS1522", output, StringComparison.Ordinal); 12679Assert.DoesNotContain($"warning CS0169", output, StringComparison.Ordinal); 12696Assert.DoesNotContain($"error CS0169", output, StringComparison.Ordinal); 12697Assert.DoesNotContain($"warning CS0169", output, StringComparison.Ordinal); 12760Assert.DoesNotContain("warning CS8848", output, StringComparison.Ordinal); 12781Assert.DoesNotContain($"error CS8848", output, StringComparison.Ordinal); 12782Assert.DoesNotContain($"warning CS8848", output, StringComparison.Ordinal); 12858Assert.DoesNotContain("warning CS0282", output, StringComparison.Ordinal); 12882Assert.DoesNotContain($"error CS0282", output, StringComparison.Ordinal); 12883Assert.DoesNotContain($"warning CS0282", output, StringComparison.Ordinal); 12968Assert.DoesNotContain("warning CS0282", output, StringComparison.Ordinal); 12992Assert.DoesNotContain($"error CS0282", output, StringComparison.Ordinal); 12993Assert.DoesNotContain($"warning CS0282", output, StringComparison.Ordinal); 13084Assert.DoesNotContain($"warning {analyzer.Descriptor.Id}", output, StringComparison.Ordinal); 13102Assert.DoesNotContain($"warning {analyzer.Descriptor.Id}", output, StringComparison.Ordinal); 13720Assert.DoesNotContain("warning CS8602", output, StringComparison.Ordinal);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\UseSiteErrorTests.cs (1)
1239Assert.DoesNotContain("System.Runtime.CompilerServices.CompilerGeneratedAttribute", diag.GetMessage(), StringComparison.Ordinal);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
LexicalAndXml\CrefLexerTests.cs (1)
443Assert.DoesNotContain("'", text, StringComparison.Ordinal);
LexicalAndXml\NameAttributeValueLexerTests.cs (1)
407Assert.DoesNotContain("'", text, StringComparison.Ordinal);
Parsing\DeclarationParsingTests.cs (1)
5895Assert.DoesNotContain(undesiredText, stmtText, StringComparison.Ordinal);
Microsoft.DotNet.XUnitAssert.Tests (1)
StringAssertsTests.cs (1)
324 verify(() => Assert.DoesNotContain("WORLD", "Hello, world!", StringComparison.OrdinalIgnoreCase));
xunit.assert (1)
StringAsserts.cs (1)
288 DoesNotContain(expectedSubstring, actualString, StringComparison.CurrentCulture);