9 instantiations of DoesNotContainException
xunit.assert (9)
CollectionAsserts.cs (4)
350 throw new DoesNotContainException(expected, collection); 356 throw new DoesNotContainException(expected, collection); 381 throw new DoesNotContainException(expected, collection); 400 throw new DoesNotContainException("(filter expression)", collection);
DictionaryAsserts.cs (2)
153 throw new DoesNotContainException(expected, collection.Keys); 176 throw new DoesNotContainException(expected, collection.Keys);
SetAsserts.cs (2)
99 throw new DoesNotContainException(expected, set); 117 throw new DoesNotContainException(expected, set);
StringAsserts.cs (1)
89 throw new DoesNotContainException(expectedSubstring, actualString);
25 references to DoesNotContainException
Microsoft.DotNet.XUnitAssert.Tests (13)
CollectionAssertsTests.cs (11)
624 DoesNotContainException ex = 625 Assert.Throws<DoesNotContainException>(() => Assert.DoesNotContain(42, list)); 659 var ex = Assert.Throws<DoesNotContainException>(() => Assert.DoesNotContain("HI THERE", set)); 680 var ex = Assert.Throws<DoesNotContainException>(() => Assert.DoesNotContain(new[] { 1, 2, 3, 4 }, collections)); 713 var ex = Assert.IsType<DoesNotContainException>(actual); 745 var ex = Assert.IsType<DoesNotContainException>(actual); 797 Assert.Throws<DoesNotContainException>(() => Assert.DoesNotContain(list, item => item.StartsWith("w")));
StringAssertsTests.cs (2)
71 Assert.IsType<DoesNotContainException>(ex); 92 Assert.Throws<DoesNotContainException>(() => Assert.DoesNotContain("WORLD", "Hello, world!", StringComparison.OrdinalIgnoreCase));
xunit.assert (12)
CollectionAsserts.cs (3)
334 /// <exception cref="DoesNotContainException">Thrown when the object is present inside the container</exception> 369 /// <exception cref="DoesNotContainException">Thrown when the object is present inside the container</exception> 390 /// <exception cref="DoesNotContainException">Thrown when the object is present inside the container</exception>
DictionaryAsserts.cs (4)
140 /// <exception cref="DoesNotContainException">Thrown when the object is present in the collection</exception> 163 /// <exception cref="DoesNotContainException">Thrown when the object is present in the collection</exception> 186 /// <exception cref="DoesNotContainException">Thrown when the object is present in the collection</exception> 204 /// <exception cref="DoesNotContainException">Thrown when the object is present in the collection</exception>
Sdk\Exceptions\DoesNotContainException.cs (1)
18 /// Creates a new instance of the <see cref="DoesNotContainException"/> class.
SetAsserts.cs (2)
91 /// <exception cref="DoesNotContainException">Thrown when the object is present inside the set</exception> 109 /// <exception cref="DoesNotContainException">Thrown when the object is present inside the container</exception>
StringAsserts.cs (2)
60 /// <exception cref="DoesNotContainException">Thrown when the sub-string is present inside the string</exception> 76 /// <exception cref="DoesNotContainException">Thrown when the sub-string is present inside the given string</exception>