10 references to DoesNotContain
Microsoft.DotNet.XUnitAssert.Tests (10)
Asserts\MemoryAssertsTests.cs (4)
194 Assert.DoesNotContain("hey".AsMemory(), "Hello, world!".AsMemory()); 206 Assert.DoesNotContain("WORLD".AsMemory(), "Hello, world!".AsMemory()); 248 var ex = Record.Exception(() => Assert.DoesNotContain("world".AsMemory(), "Hello, world!".AsMemory())); 278 Assert.DoesNotContain("foo".AsMemory(), default(string).AsMemory());
Asserts\StringAssertsTests.cs (6)
147 Assert.DoesNotContain("hey".AsMemory(), "Hello, world!".AsMemory()); 161 Assert.DoesNotContain("WORLD".AsMemory(), "Hello, world!".AsMemory()); 189 verify(() => Assert.DoesNotContain("world".AsMemory(), "Hello, world!".AsMemory())); 223 verify(() => Assert.DoesNotContain("world".AsMemory(), "Hello, world from a very long string that will end up being truncated".AsMemory())); 251 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())); 279 verify(() => Assert.DoesNotContain("world".AsMemory(), "This is a relatively long string that will from the front truncated, just to say 'Hello, world'".AsMemory()));