5 references to IfNullOrEmpty
Shared.Tests (5)
Throw\ThrowTest.cs (5)
254
var exception = Assert.Throws<ArgumentNullException>(() => Throw.
IfNullOrEmpty
(null, "paramName"));
261
var exception = Assert.Throws<ArgumentException>(() => Throw.
IfNullOrEmpty
("", "paramName"));
269
var exception = Record.Exception(() => Throw.
IfNullOrEmpty
("param", "paramName"));
291
var exceptionImplicitArgumentName = Record.Exception(() => Throw.
IfNullOrEmpty
(somethingThatIsNull));
293
var exceptionExplicitArgumentName = Record.Exception(() => Throw.
IfNullOrEmpty
(somethingThatIsNull, nameof(somethingThatIsNull)));