13 references to DoesNotContain
Microsoft.DotNet.XUnitAssert.Tests (13)
Asserts\SpanAssertsTests.cs (7)
194 Assert.DoesNotContain("hey".AsSpan(), "Hello, world!".AsSpan());
206 Assert.DoesNotContain("WORLD".AsSpan(), "Hello, world!".AsSpan());
248 var ex = Record.Exception(() => Assert.DoesNotContain("world".AsSpan(), "Hello, world!".AsSpan()));
278 Assert.DoesNotContain("foo".AsSpan(), default(string).AsSpan());
290 var ex = Record.Exception(() => Assert.DoesNotContain("world".AsSpan(), "Hello, world from a very long string that will end up being truncated".AsSpan()));
305 var ex = Record.Exception(() => Assert.DoesNotContain("world".AsSpan(), "This is a relatively long string that has 'Hello, world' placed in the middle so that we can dual trunaction".AsSpan()));
320 var ex = Record.Exception(() => Assert.DoesNotContain("world".AsSpan(), "This is a relatively long string that will from the front truncated, just to say 'Hello, world'".AsSpan()));
Asserts\StringAssertsTests.cs (6)
151 Assert.DoesNotContain("hey".AsSpan(), "Hello, world!".AsSpan());
165 Assert.DoesNotContain("WORLD".AsSpan(), "Hello, world!".AsSpan());
193 verify(() => Assert.DoesNotContain("world".AsSpan(), "Hello, world!".AsSpan()));
227 verify(() => Assert.DoesNotContain("world".AsSpan(), "Hello, world from a very long string that will end up being truncated".AsSpan()));
255 verify(() => Assert.DoesNotContain("world".AsSpan(), "This is a relatively long string that has 'Hello, world' placed in the middle so that we can dual trunaction".AsSpan()));
283 verify(() => Assert.DoesNotContain("world".AsSpan(), "This is a relatively long string that will from the front truncated, just to say 'Hello, world'".AsSpan()));