212 references to GuardArgumentNotNull
xunit.assert (212)
CollectionAsserts.cs (31)
39 GuardArgumentNotNull(nameof(collection), collection); 40 GuardArgumentNotNull(nameof(action), action); 57 GuardArgumentNotNull(nameof(collection), collection); 58 GuardArgumentNotNull(nameof(action), action); 93 GuardArgumentNotNull(nameof(collection), collection); 94 GuardArgumentNotNull(nameof(action), action); 111 GuardArgumentNotNull(nameof(collection), collection); 112 GuardArgumentNotNull(nameof(action), action); 147 GuardArgumentNotNull(nameof(collection), collection); 148 GuardArgumentNotNull(nameof(elementInspectors), elementInspectors); 188 GuardArgumentNotNull(nameof(collection), collection); 189 GuardArgumentNotNull(nameof(elementInspectors), elementInspectors); 228 GuardArgumentNotNull(nameof(collection), collection); 264 GuardArgumentNotNull(nameof(collection), collection); 265 GuardArgumentNotNull(nameof(comparer), comparer); 283 GuardArgumentNotNull(nameof(collection), collection); 284 GuardArgumentNotNull(nameof(filter), filter); 316 GuardArgumentNotNull(nameof(collection), collection); 317 GuardArgumentNotNull(nameof(comparer), comparer); 340 GuardArgumentNotNull(nameof(collection), collection); 376 GuardArgumentNotNull(nameof(collection), collection); 377 GuardArgumentNotNull(nameof(comparer), comparer); 414 GuardArgumentNotNull(nameof(collection), collection); 415 GuardArgumentNotNull(nameof(filter), filter); 448 GuardArgumentNotNull(nameof(collection), collection); 526 GuardArgumentNotNull(nameof(collection), collection); 614 GuardArgumentNotNull(nameof(collection), collection); 637 GuardArgumentNotNull(nameof(collection), collection); 653 GuardArgumentNotNull(nameof(collection), collection); 674 GuardArgumentNotNull(nameof(collection), collection); 675 GuardArgumentNotNull(nameof(predicate), predicate);
DictionaryAsserts.cs (8)
49 GuardArgumentNotNull(nameof(expected), expected); 50 GuardArgumentNotNull(nameof(collection), collection); 83 GuardArgumentNotNull(nameof(expected), expected); 84 GuardArgumentNotNull(nameof(collection), collection); 214 GuardArgumentNotNull(nameof(expected), expected); 215 GuardArgumentNotNull(nameof(collection), collection); 240 GuardArgumentNotNull(nameof(expected), expected); 241 GuardArgumentNotNull(nameof(collection), collection);
EqualityAsserts.cs (2)
140 GuardArgumentNotNull(nameof(comparer), comparer); 658 GuardArgumentNotNull(nameof(comparer), comparer);
EventAsserts.cs (22)
325 GuardArgumentNotNull(nameof(attach), attach); 326 GuardArgumentNotNull(nameof(detach), detach); 327 GuardArgumentNotNull(nameof(testCode), testCode); 347 GuardArgumentNotNull(nameof(attach), attach); 348 GuardArgumentNotNull(nameof(detach), detach); 349 GuardArgumentNotNull(nameof(testCode), testCode); 415 GuardArgumentNotNull(nameof(handler), handler); 416 GuardArgumentNotNull(nameof(attach), attach); 417 GuardArgumentNotNull(nameof(detach), detach); 418 GuardArgumentNotNull(nameof(testCode), testCode); 431 GuardArgumentNotNull(nameof(attach), attach); 432 GuardArgumentNotNull(nameof(detach), detach); 433 GuardArgumentNotNull(nameof(testCode), testCode); 453 GuardArgumentNotNull(nameof(attach), attach); 454 GuardArgumentNotNull(nameof(detach), detach); 455 GuardArgumentNotNull(nameof(testCode), testCode); 478 GuardArgumentNotNull(nameof(attach), attach); 479 GuardArgumentNotNull(nameof(detach), detach); 480 GuardArgumentNotNull(nameof(testCode), testCode); 500 GuardArgumentNotNull(nameof(attach), attach); 501 GuardArgumentNotNull(nameof(detach), detach); 502 GuardArgumentNotNull(nameof(testCode), testCode);
ExceptionAsserts.cs (2)
31 GuardArgumentNotNull(nameof(exceptionType), exceptionType); 189 GuardArgumentNotNull(nameof(exceptionType), exceptionType);
MemoryAsserts.cs (3)
94 GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory); 170 GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory); 233 GuardArgumentNotNull(nameof(expectedMemory), expectedMemory);
PropertyAsserts.cs (6)
32 GuardArgumentNotNull(nameof(@object), @object); 33 GuardArgumentNotNull(nameof(propertyName), propertyName); 34 GuardArgumentNotNull(nameof(testCode), testCode); 79 GuardArgumentNotNull(nameof(@object), @object); 80 GuardArgumentNotNull(nameof(propertyName), propertyName); 81 GuardArgumentNotNull(nameof(testCode), testCode);
RangeAsserts.cs (8)
51 GuardArgumentNotNull(nameof(actual), actual); 52 GuardArgumentNotNull(nameof(low), low); 53 GuardArgumentNotNull(nameof(high), high); 54 GuardArgumentNotNull(nameof(comparer), comparer); 90 GuardArgumentNotNull(nameof(actual), actual); 91 GuardArgumentNotNull(nameof(low), low); 92 GuardArgumentNotNull(nameof(high), high); 93 GuardArgumentNotNull(nameof(comparer), comparer);
Record.cs (3)
33 GuardArgumentNotNull(nameof(testCode), testCode); 63 GuardArgumentNotNull(nameof(testCode), testCode); 101 GuardArgumentNotNull(nameof(testCode), testCode);
Sdk\AssertHelper.cs (1)
561 Assert.GuardArgumentNotNull(nameof(prefix), prefix);
Sdk\CollectionTracker.cs (2)
88 Assert.GuardArgumentNotNull(nameof(itemComparer), itemComparer); 657 Assert.GuardArgumentNotNull(nameof(collection), collection);
Sdk\CollectionTrackerExtensions.cs (1)
117 Assert.GuardArgumentNotNull(nameof(tracker), tracker);
Sdk\Exceptions\AllException.cs (1)
40 Assert.GuardArgumentNotNull(nameof(errors), errors);
Sdk\Exceptions\CollectionException.cs (2)
70 Assert.GuardArgumentNotNull(nameof(exception), exception); 98 Assert.GuardArgumentNotNull(nameof(formattedCollection), formattedCollection),
Sdk\Exceptions\ContainsException.cs (12)
36 Assert.GuardArgumentNotNull(nameof(collection), collection) 54 Assert.GuardArgumentNotNull(nameof(collection), collection), 56 Assert.GuardArgumentNotNull(nameof(item), item) 74 Assert.GuardArgumentNotNull(nameof(keys), keys), 76 Assert.GuardArgumentNotNull(nameof(expectedKey), expectedKey) 94 Assert.GuardArgumentNotNull(nameof(set), set), 96 Assert.GuardArgumentNotNull(nameof(item), item) 114 Assert.GuardArgumentNotNull(nameof(memory), memory), 116 Assert.GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory) 134 Assert.GuardArgumentNotNull(nameof(span), span), 136 Assert.GuardArgumentNotNull(nameof(expectedSubSpan), expectedSubSpan) 160 AssertHelper.ShortenAndEncodeString(Assert.GuardArgumentNotNull(nameof(expectedSubString), expectedSubString))
Sdk\Exceptions\DistinctException.cs (2)
38 Assert.GuardArgumentNotNull(nameof(collection), collection), 40 Assert.GuardArgumentNotNull(nameof(item), item)
Sdk\Exceptions\DoesNotContainException.cs (13)
37 Assert.GuardArgumentNotNull(nameof(collection), collection); 63 Assert.GuardArgumentNotNull(nameof(item), item); 64 Assert.GuardArgumentNotNull(nameof(collection), collection); 90 Assert.GuardArgumentNotNull(nameof(keys), keys), 92 Assert.GuardArgumentNotNull(nameof(expectedKey), expectedKey) 110 Assert.GuardArgumentNotNull(nameof(set), set), 112 Assert.GuardArgumentNotNull(nameof(item), item) 130 Assert.GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory); 131 Assert.GuardArgumentNotNull(nameof(memory), memory); 157 Assert.GuardArgumentNotNull(nameof(expectedSubSpan), expectedSubSpan); 158 Assert.GuardArgumentNotNull(nameof(span), span); 182 Assert.GuardArgumentNotNull(nameof(expectedSubString), expectedSubString); 183 Assert.GuardArgumentNotNull(nameof(@string), @string);
Sdk\Exceptions\DoesNotMatchException.cs (2)
46 Assert.GuardArgumentNotNull(nameof(@string), @string), 48 Assert.GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern)
Sdk\Exceptions\EmptyException.cs (2)
36 Assert.GuardArgumentNotNull(nameof(collection), collection) 51 AssertHelper.ShortenAndEncodeString(Assert.GuardArgumentNotNull(nameof(value), value))
Sdk\Exceptions\EqualException.cs (1)
103 Assert.GuardArgumentNotNull(nameof(actual), actual);
Sdk\Exceptions\EquivalentException.cs (13)
54 Assert.GuardArgumentNotNull(nameof(memberName), memberName) 72 Assert.GuardArgumentNotNull(nameof(memberName), memberName) 93 FormatMemberNameList(Assert.GuardArgumentNotNull(nameof(expectedMemberNames), expectedMemberNames), prefix), 95 FormatMemberNameList(Assert.GuardArgumentNotNull(nameof(actualMemberNames), actualMemberNames), prefix) 127 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, ": Mismatched value on member '{0}'", memberName), 157 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName), 192 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName), 194 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 196 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actualLeftovers), actualLeftovers)), 197 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual)) 220 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName), 222 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(expectedType), expectedType), fullTypeName: true), 224 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(actualType), actualType), fullTypeName: true)
Sdk\Exceptions\ExceptionUtility.cs (1)
28 Assert.GuardArgumentNotNull(nameof(stackFrame), stackFrame);
Sdk\Exceptions\InRangeException.cs (3)
40 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(low), low)), 41 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(high), high)), 43 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual))
Sdk\Exceptions\IsAssignableFromException.cs (1)
46 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)),
Sdk\Exceptions\IsNotAssignableFromException.cs (2)
38 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 40 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType())
Sdk\Exceptions\IsNotTypeException.cs (1)
31 Assert.GuardArgumentNotNull(nameof(type), type);
Sdk\Exceptions\IsTypeException.cs (1)
43 Assert.GuardArgumentNotNull(nameof(expectedTypeName), expectedTypeName),
Sdk\Exceptions\MatchesException.cs (1)
42 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern)),
Sdk\Exceptions\MultipleException.cs (1)
25 Assert.GuardArgumentNotNull(nameof(innerExceptions), innerExceptions);
Sdk\Exceptions\NotEqualException.cs (4)
79 Assert.GuardArgumentNotNull(nameof(expected), expected); 80 Assert.GuardArgumentNotNull(nameof(actual), actual); 155 Assert.GuardArgumentNotNull(nameof(expected), expected), 157 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\NotInRangeException.cs (3)
40 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(low), low)), 41 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(high), high)), 43 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual))
Sdk\Exceptions\NotNullException.cs (1)
34 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(type), type))
Sdk\Exceptions\NotStrictEqualException.cs (2)
38 Assert.GuardArgumentNotNull(nameof(expected), expected), 40 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\NullException.cs (2)
47 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(type), type)), 73 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual))
Sdk\Exceptions\ProperSubsetException.cs (2)
38 Assert.GuardArgumentNotNull(nameof(expected), expected), 40 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\ProperSupersetException.cs (2)
38 Assert.GuardArgumentNotNull(nameof(expected), expected), 40 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\PropertyChangedException.cs (1)
33 Assert.GuardArgumentNotNull(nameof(propertyName), propertyName)
Sdk\Exceptions\RaisesAnyException.cs (1)
35 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)),
Sdk\Exceptions\RaisesException.cs (3)
38 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 40 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual)) 62 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)),
Sdk\Exceptions\SameException.cs (2)
38 Assert.GuardArgumentNotNull(nameof(expected), expected), 40 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\SingleException.cs (3)
39 Assert.GuardArgumentNotNull(nameof(collection), collection); 74 Assert.GuardArgumentNotNull(nameof(collection), collection); 75 Assert.GuardArgumentNotNull(nameof(matchIndices), matchIndices);
Sdk\Exceptions\SkipException.cs (1)
34 Assert.GuardArgumentNotNull(nameof(message), message)
Sdk\Exceptions\StrictEqualException.cs (2)
38 Assert.GuardArgumentNotNull(nameof(expected), expected), 40 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\SubsetException.cs (2)
38 Assert.GuardArgumentNotNull(nameof(expected), expected), 40 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\SupersetException.cs (2)
38 Assert.GuardArgumentNotNull(nameof(expected), expected), 40 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\ThrowsAnyException.cs (3)
47 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 49 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType()) 65 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected))
Sdk\Exceptions\ThrowsException.cs (4)
47 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 49 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType()) 75 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 94 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected))
SetAsserts.cs (8)
36 GuardArgumentNotNull(nameof(set), set); 63 GuardArgumentNotNull(nameof(set), set); 135 GuardArgumentNotNull(nameof(set), set); 161 GuardArgumentNotNull(nameof(set), set); 251 GuardArgumentNotNull(nameof(expectedSubset), expectedSubset); 280 GuardArgumentNotNull(nameof(expectedSuperset), expectedSuperset); 304 GuardArgumentNotNull(nameof(expectedSubset), expectedSubset); 328 GuardArgumentNotNull(nameof(expectedSuperset), expectedSuperset);
StringAsserts.cs (12)
55 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 158 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 298 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 405 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 527 GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern); 557 GuardArgumentNotNull(nameof(expectedRegex), expectedRegex); 581 GuardArgumentNotNull(nameof(value), value); 721 GuardArgumentNotNull(nameof(expectedEndString), expectedEndString); 1081 GuardArgumentNotNull(nameof(expected), expected); 1354 GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern); 1374 GuardArgumentNotNull(nameof(expectedRegex), expectedRegex); 1514 GuardArgumentNotNull(nameof(expectedStartString), expectedStartString);
TypeAsserts.cs (4)
60 GuardArgumentNotNull(nameof(expectedType), expectedType); 94 GuardArgumentNotNull(nameof(expectedType), expectedType); 129 GuardArgumentNotNull(nameof(expectedType), expectedType); 168 GuardArgumentNotNull(nameof(expectedType), expectedType);