13 references to DoesNotContain
Microsoft.DotNet.XUnitAssert.Tests (13)
SpanAssertsTests.cs (7)
199 Assert.DoesNotContain("hey".AsSpan(), "Hello, world!".AsSpan()); 211 Assert.DoesNotContain("WORLD".AsSpan(), "Hello, world!".AsSpan()); 253 var ex = Record.Exception(() => Assert.DoesNotContain("world".AsSpan(), "Hello, world!".AsSpan())); 283 Assert.DoesNotContain("foo".AsSpan(), default(string).AsSpan()); 295 var ex = Record.Exception(() => Assert.DoesNotContain("world".AsSpan(), "Hello, world from a very long string that will end up being truncated".AsSpan())); 310 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())); 325 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()));
StringAssertsTests.cs (6)
161 Assert.DoesNotContain("hey".AsSpan(), "Hello, world!".AsSpan()); 177 Assert.DoesNotContain("WORLD".AsSpan(), "Hello, world!".AsSpan()); 207 verify(() => Assert.DoesNotContain("world".AsSpan(), "Hello, world!".AsSpan())); 243 verify(() => Assert.DoesNotContain("world".AsSpan(), "Hello, world from a very long string that will end up being truncated".AsSpan())); 273 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())); 303 verify(() => Assert.DoesNotContain("world".AsSpan(), "This is a relatively long string that will from the front truncated, just to say 'Hello, world'".AsSpan()));