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)
3520Assert.DoesNotContain("Warning01", outWriter.ToString(), StringComparison.Ordinal); 3531Assert.DoesNotContain("Warning01", outWriter.ToString(), StringComparison.Ordinal); 8386Assert.DoesNotContain(source, outWriter.ToString(), StringComparison.Ordinal); 9515Assert.DoesNotContain(CodeAnalysisResources.AnalyzerExecutionTimeColumnHeader, output, StringComparison.Ordinal); 9516Assert.DoesNotContain(new WarningDiagnosticAnalyzer().ToString(), output, StringComparison.Ordinal); 9682Assert.DoesNotContain("CS2038", outWriter.ToString(), StringComparison.Ordinal); 9687Assert.DoesNotContain("CS2038", outWriter.ToString(), StringComparison.Ordinal); 9692Assert.DoesNotContain("CS2038", outWriter.ToString(), StringComparison.Ordinal); 9990Assert.DoesNotContain(errorMessage, output, StringComparison.Ordinal); 9995Assert.DoesNotContain(errorMessage, output, StringComparison.Ordinal); 10000Assert.DoesNotContain(errorMessage, output, StringComparison.Ordinal); 10569Assert.DoesNotContain("hidden", output, StringComparison.Ordinal); 10573Assert.DoesNotContain("info", output, StringComparison.Ordinal); 10584Assert.DoesNotContain("warning", output, StringComparison.Ordinal); 10593Assert.DoesNotContain("error", output, StringComparison.Ordinal); 12541Assert.DoesNotContain($"error CS0078", output, StringComparison.Ordinal); 12542Assert.DoesNotContain($"warning CS0078", output, StringComparison.Ordinal); 12593Assert.DoesNotContain($"warning CS1522", output, StringComparison.Ordinal); 12610Assert.DoesNotContain($"error CS1522", output, StringComparison.Ordinal); 12611Assert.DoesNotContain($"warning CS1522", output, StringComparison.Ordinal); 12649Assert.DoesNotContain($"warning CS0169", output, StringComparison.Ordinal); 12666Assert.DoesNotContain($"error CS0169", output, StringComparison.Ordinal); 12667Assert.DoesNotContain($"warning CS0169", output, StringComparison.Ordinal); 12730Assert.DoesNotContain("warning CS8848", output, StringComparison.Ordinal); 12751Assert.DoesNotContain($"error CS8848", output, StringComparison.Ordinal); 12752Assert.DoesNotContain($"warning CS8848", output, StringComparison.Ordinal); 12828Assert.DoesNotContain("warning CS0282", output, StringComparison.Ordinal); 12852Assert.DoesNotContain($"error CS0282", output, StringComparison.Ordinal); 12853Assert.DoesNotContain($"warning CS0282", output, StringComparison.Ordinal); 12938Assert.DoesNotContain("warning CS0282", output, StringComparison.Ordinal); 12962Assert.DoesNotContain($"error CS0282", output, StringComparison.Ordinal); 12963Assert.DoesNotContain($"warning CS0282", output, StringComparison.Ordinal); 13054Assert.DoesNotContain($"warning {analyzer.Descriptor.Id}", output, StringComparison.Ordinal); 13072Assert.DoesNotContain($"warning {analyzer.Descriptor.Id}", output, StringComparison.Ordinal); 13690Assert.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);