10 references to DoesNotContain
Microsoft.DotNet.XUnitAssert.Tests (10)
MemoryAssertsTests.cs (4)
199
Assert.
DoesNotContain
("hey".AsMemory(), "Hello, world!".AsMemory());
211
Assert.
DoesNotContain
("WORLD".AsMemory(), "Hello, world!".AsMemory());
253
var ex = Record.Exception(() => Assert.
DoesNotContain
("world".AsMemory(), "Hello, world!".AsMemory()));
283
Assert.
DoesNotContain
("foo".AsMemory(), default(string).AsMemory());
StringAssertsTests.cs (6)
157
Assert.
DoesNotContain
("hey".AsMemory(), "Hello, world!".AsMemory());
173
Assert.
DoesNotContain
("WORLD".AsMemory(), "Hello, world!".AsMemory());
203
verify(() => Assert.
DoesNotContain
("world".AsMemory(), "Hello, world!".AsMemory()));
239
verify(() => Assert.
DoesNotContain
("world".AsMemory(), "Hello, world from a very long string that will end up being truncated".AsMemory()));
269
verify(() => Assert.
DoesNotContain
("world".AsMemory(), "This is a relatively long string that has 'Hello, world' placed in the middle so that we can dual trunaction".AsMemory()));
299
verify(() => Assert.
DoesNotContain
("world".AsMemory(), "This is a relatively long string that will from the front truncated, just to say 'Hello, world'".AsMemory()));