254 references to GuardArgumentNotNull
xunit.assert (254)
CollectionAsserts.cs (39)
41 GuardArgumentNotNull(nameof(collection), collection); 42 GuardArgumentNotNull(nameof(action), action); 62 GuardArgumentNotNull(nameof(collection), collection); 63 GuardArgumentNotNull(nameof(action), action); 80 GuardArgumentNotNull(nameof(collection), collection); 81 GuardArgumentNotNull(nameof(action), action); 101 GuardArgumentNotNull(nameof(collection), collection); 102 GuardArgumentNotNull(nameof(action), action); 140 GuardArgumentNotNull(nameof(collection), collection); 141 GuardArgumentNotNull(nameof(action), action); 161 GuardArgumentNotNull(nameof(collection), collection); 162 GuardArgumentNotNull(nameof(action), action); 179 GuardArgumentNotNull(nameof(collection), collection); 180 GuardArgumentNotNull(nameof(action), action); 200 GuardArgumentNotNull(nameof(collection), collection); 201 GuardArgumentNotNull(nameof(action), action); 239 GuardArgumentNotNull(nameof(collection), collection); 240 GuardArgumentNotNull(nameof(elementInspectors), elementInspectors); 279 GuardArgumentNotNull(nameof(collection), collection); 280 GuardArgumentNotNull(nameof(elementInspectors), elementInspectors); 318 GuardArgumentNotNull(nameof(collection), collection); 352 GuardArgumentNotNull(nameof(collection), collection); 353 GuardArgumentNotNull(nameof(comparer), comparer); 371 GuardArgumentNotNull(nameof(collection), collection); 372 GuardArgumentNotNull(nameof(filter), filter); 404 GuardArgumentNotNull(nameof(collection), collection); 405 GuardArgumentNotNull(nameof(comparer), comparer); 428 GuardArgumentNotNull(nameof(collection), collection); 462 GuardArgumentNotNull(nameof(collection), collection); 463 GuardArgumentNotNull(nameof(comparer), comparer); 499 GuardArgumentNotNull(nameof(collection), collection); 500 GuardArgumentNotNull(nameof(filter), filter); 532 GuardArgumentNotNull(nameof(collection), collection); 605 GuardArgumentNotNull(nameof(collection), collection); 688 GuardArgumentNotNull(nameof(collection), collection); 711 GuardArgumentNotNull(nameof(collection), collection); 727 GuardArgumentNotNull(nameof(collection), collection); 748 GuardArgumentNotNull(nameof(collection), collection); 749 GuardArgumentNotNull(nameof(predicate), predicate);
DictionaryAsserts.cs (8)
37 GuardArgumentNotNull(nameof(expected), expected); 38 GuardArgumentNotNull(nameof(collection), collection); 65 GuardArgumentNotNull(nameof(expected), expected); 66 GuardArgumentNotNull(nameof(collection), collection); 160 GuardArgumentNotNull(nameof(expected), expected); 161 GuardArgumentNotNull(nameof(collection), collection); 186 GuardArgumentNotNull(nameof(expected), expected); 187 GuardArgumentNotNull(nameof(collection), collection);
EqualityAsserts.cs (2)
73 GuardArgumentNotNull(nameof(comparer), comparer); 528 GuardArgumentNotNull(nameof(comparer), comparer);
EventAsserts.cs (40)
268 GuardArgumentNotNull(nameof(attach), attach); 269 GuardArgumentNotNull(nameof(detach), detach); 270 GuardArgumentNotNull(nameof(testCode), testCode); 290 GuardArgumentNotNull(nameof(attach), attach); 291 GuardArgumentNotNull(nameof(detach), detach); 292 GuardArgumentNotNull(nameof(testCode), testCode); 362 GuardArgumentNotNull(nameof(handler), handler); 363 GuardArgumentNotNull(nameof(attach), attach); 364 GuardArgumentNotNull(nameof(detach), detach); 365 GuardArgumentNotNull(nameof(testCode), testCode); 378 GuardArgumentNotNull(nameof(attach), attach); 379 GuardArgumentNotNull(nameof(detach), detach); 380 GuardArgumentNotNull(nameof(testCode), testCode); 400 GuardArgumentNotNull(nameof(attach), attach); 401 GuardArgumentNotNull(nameof(detach), detach); 402 GuardArgumentNotNull(nameof(testCode), testCode); 427 GuardArgumentNotNull(nameof(attach), attach); 428 GuardArgumentNotNull(nameof(detach), detach); 429 GuardArgumentNotNull(nameof(testCode), testCode); 449 GuardArgumentNotNull(nameof(attach), attach); 450 GuardArgumentNotNull(nameof(detach), detach); 451 GuardArgumentNotNull(nameof(testCode), testCode); 479 GuardArgumentNotNull(nameof(attach), attach); 480 GuardArgumentNotNull(nameof(detach), detach); 481 GuardArgumentNotNull(nameof(testCode), testCode); 500 GuardArgumentNotNull(nameof(attach), attach); 501 GuardArgumentNotNull(nameof(detach), detach); 502 GuardArgumentNotNull(nameof(testCode), testCode); 521 GuardArgumentNotNull(nameof(attach), attach); 522 GuardArgumentNotNull(nameof(detach), detach); 523 GuardArgumentNotNull(nameof(testCode), testCode); 541 GuardArgumentNotNull(nameof(attach), attach); 542 GuardArgumentNotNull(nameof(detach), detach); 543 GuardArgumentNotNull(nameof(testCode), testCode); 562 GuardArgumentNotNull(nameof(attach), attach); 563 GuardArgumentNotNull(nameof(detach), detach); 564 GuardArgumentNotNull(nameof(testCode), testCode); 582 GuardArgumentNotNull(nameof(attach), attach); 583 GuardArgumentNotNull(nameof(detach), detach); 584 GuardArgumentNotNull(nameof(testCode), testCode);
ExceptionAsserts.cs (2)
469 GuardArgumentNotNull(nameof(exceptionType), exceptionType); 503 GuardArgumentNotNull(nameof(exceptionType), exceptionType);
MemoryAsserts.cs (3)
68 GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory); 124 GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory); 186 GuardArgumentNotNull(nameof(expectedMemory), expectedMemory);
PropertyAsserts.cs (6)
34 GuardArgumentNotNull(nameof(@object), @object); 35 GuardArgumentNotNull(nameof(propertyName), propertyName); 36 GuardArgumentNotNull(nameof(testCode), testCode); 85 GuardArgumentNotNull(nameof(@object), @object); 86 GuardArgumentNotNull(nameof(propertyName), propertyName); 87 GuardArgumentNotNull(nameof(testCode), testCode);
RangeAsserts.cs (8)
48 GuardArgumentNotNull(nameof(actual), actual); 49 GuardArgumentNotNull(nameof(low), low); 50 GuardArgumentNotNull(nameof(high), high); 51 GuardArgumentNotNull(nameof(comparer), comparer); 87 GuardArgumentNotNull(nameof(actual), actual); 88 GuardArgumentNotNull(nameof(low), low); 89 GuardArgumentNotNull(nameof(high), high); 90 GuardArgumentNotNull(nameof(comparer), comparer);
Record.cs (3)
46 GuardArgumentNotNull(nameof(testCode), testCode); 83 GuardArgumentNotNull(nameof(testCode), testCode); 134 GuardArgumentNotNull(nameof(testCode), testCode);
Sdk\CollectionTracker.cs (2)
83 Assert.GuardArgumentNotNull(nameof(itemComparer), itemComparer); 600 Assert.GuardArgumentNotNull(nameof(collection), collection);
Sdk\CollectionTrackerExtensions.cs (1)
60 Assert.GuardArgumentNotNull(nameof(tracker), tracker);
Sdk\Exceptions\AllException.cs (1)
42 Assert.GuardArgumentNotNull(nameof(errors), errors);
Sdk\Exceptions\CollectionException.cs (2)
73 Assert.GuardArgumentNotNull(nameof(exception), exception); 101 Assert.GuardArgumentNotNull(nameof(formattedCollection), formattedCollection),
Sdk\Exceptions\ContainsException.cs (12)
40 Assert.GuardArgumentNotNull(nameof(collection), collection) 58 Assert.GuardArgumentNotNull(nameof(collection), collection), 60 Assert.GuardArgumentNotNull(nameof(item), item) 78 Assert.GuardArgumentNotNull(nameof(keys), keys), 80 Assert.GuardArgumentNotNull(nameof(expectedKey), expectedKey) 98 Assert.GuardArgumentNotNull(nameof(set), set), 100 Assert.GuardArgumentNotNull(nameof(item), item) 118 Assert.GuardArgumentNotNull(nameof(memory), memory), 120 Assert.GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory) 138 Assert.GuardArgumentNotNull(nameof(span), span), 140 Assert.GuardArgumentNotNull(nameof(expectedSubSpan), expectedSubSpan) 164 AssertHelper.ShortenAndEncodeString(Assert.GuardArgumentNotNull(nameof(expectedSubString), expectedSubString))
Sdk\Exceptions\DistinctException.cs (2)
41 Assert.GuardArgumentNotNull(nameof(collection), collection), 43 Assert.GuardArgumentNotNull(nameof(item), item)
Sdk\Exceptions\DoesNotContainException.cs (13)
41 Assert.GuardArgumentNotNull(nameof(collection), collection); 67 Assert.GuardArgumentNotNull(nameof(item), item); 68 Assert.GuardArgumentNotNull(nameof(collection), collection); 94 Assert.GuardArgumentNotNull(nameof(keys), keys), 96 Assert.GuardArgumentNotNull(nameof(expectedKey), expectedKey) 114 Assert.GuardArgumentNotNull(nameof(set), set), 116 Assert.GuardArgumentNotNull(nameof(item), item) 134 Assert.GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory); 135 Assert.GuardArgumentNotNull(nameof(memory), memory); 161 Assert.GuardArgumentNotNull(nameof(expectedSubSpan), expectedSubSpan); 162 Assert.GuardArgumentNotNull(nameof(span), span); 186 Assert.GuardArgumentNotNull(nameof(expectedSubString), expectedSubString); 187 Assert.GuardArgumentNotNull(nameof(@string), @string);
Sdk\Exceptions\DoesNotMatchException.cs (2)
50 Assert.GuardArgumentNotNull(nameof(@string), @string), 52 Assert.GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern)
Sdk\Exceptions\EmptyException.cs (2)
39 Assert.GuardArgumentNotNull(nameof(collection), collection) 54 AssertHelper.ShortenAndEncodeString(Assert.GuardArgumentNotNull(nameof(value), value))
Sdk\Exceptions\EqualException.cs (5)
106 Assert.GuardArgumentNotNull(nameof(actual), actual); 155 Assert.GuardArgumentNotNull(nameof(expected), expected); 156 Assert.GuardArgumentNotNull(nameof(actual), actual); 337 Assert.GuardArgumentNotNull(nameof(expected), expected); 338 Assert.GuardArgumentNotNull(nameof(actual), actual);
Sdk\Exceptions\EquivalentException.cs (13)
58 Assert.GuardArgumentNotNull(nameof(memberName), memberName) 76 Assert.GuardArgumentNotNull(nameof(memberName), memberName) 125 FormatMemberNameList(Assert.GuardArgumentNotNull(nameof(expectedMemberNames), expectedMemberNames), prefix), 127 FormatMemberNameList(Assert.GuardArgumentNotNull(nameof(actualMemberNames), actualMemberNames), prefix) 159 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, ": Mismatched value on member '{0}'", memberName), 189 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName), 224 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName), 226 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 228 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actualLeftovers), actualLeftovers)), 229 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual)) 252 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName), 254 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(expectedType), expectedType), fullTypeName: true), 256 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)
43 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(low), low)), 44 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(high), high)), 46 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual))
Sdk\Exceptions\IsAssignableFromException.cs (1)
49 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)),
Sdk\Exceptions\IsNotAssignableFromException.cs (2)
41 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 43 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType())
Sdk\Exceptions\IsNotTypeException.cs (2)
32 Assert.GuardArgumentNotNull(nameof(expectedType), expectedType); 33 Assert.GuardArgumentNotNull(nameof(actualType), actualType);
Sdk\Exceptions\IsTypeException.cs (1)
41 Assert.GuardArgumentNotNull(nameof(expectedTypeName), expectedTypeName),
Sdk\Exceptions\MatchesException.cs (1)
45 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern)),
Sdk\Exceptions\MultipleException.cs (1)
31 Assert.GuardArgumentNotNull(nameof(innerExceptions), innerExceptions);
Sdk\Exceptions\NotEqualException.cs (6)
82 Assert.GuardArgumentNotNull(nameof(expected), expected); 83 Assert.GuardArgumentNotNull(nameof(actual), actual); 130 Assert.GuardArgumentNotNull(nameof(expected), expected); 131 Assert.GuardArgumentNotNull(nameof(actual), actual); 211 Assert.GuardArgumentNotNull(nameof(expected), expected), 213 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\NotInRangeException.cs (3)
43 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(low), low)), 44 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(high), high)), 46 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual))
Sdk\Exceptions\NotNullException.cs (2)
37 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(type), type)) 51 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(type), type))
Sdk\Exceptions\NotRaisesException.cs (1)
45 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(unexpected), unexpected)),
Sdk\Exceptions\NotStrictEqualException.cs (2)
41 Assert.GuardArgumentNotNull(nameof(expected), expected), 43 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\NullException.cs (3)
40 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(type), type)) 58 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(type), type)), 77 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual))
Sdk\Exceptions\ProperSubsetException.cs (2)
41 Assert.GuardArgumentNotNull(nameof(expected), expected), 43 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\ProperSupersetException.cs (2)
41 Assert.GuardArgumentNotNull(nameof(expected), expected), 43 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\PropertyChangedException.cs (1)
36 Assert.GuardArgumentNotNull(nameof(propertyName), propertyName)
Sdk\Exceptions\RaisesAnyException.cs (1)
38 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)),
Sdk\Exceptions\RaisesException.cs (3)
41 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 43 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual)) 65 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)),
Sdk\Exceptions\SameException.cs (2)
41 Assert.GuardArgumentNotNull(nameof(expected), expected), 43 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\SingleException.cs (3)
42 Assert.GuardArgumentNotNull(nameof(collection), collection); 77 Assert.GuardArgumentNotNull(nameof(collection), collection); 78 Assert.GuardArgumentNotNull(nameof(matchIndices), matchIndices);
Sdk\Exceptions\SkipException.cs (1)
37 Assert.GuardArgumentNotNull(nameof(message), message)
Sdk\Exceptions\StrictEqualException.cs (2)
41 Assert.GuardArgumentNotNull(nameof(expected), expected), 43 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\SubsetException.cs (2)
41 Assert.GuardArgumentNotNull(nameof(expected), expected), 43 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\SupersetException.cs (2)
41 Assert.GuardArgumentNotNull(nameof(expected), expected), 43 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\ThrowsAnyException.cs (3)
50 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 52 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType()) 83 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected))
Sdk\Exceptions\ThrowsException.cs (4)
50 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 52 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType()) 78 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 112 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected))
SetAsserts.cs (8)
29 GuardArgumentNotNull(nameof(set), set); 52 GuardArgumentNotNull(nameof(set), set); 123 GuardArgumentNotNull(nameof(set), set); 145 GuardArgumentNotNull(nameof(set), set); 219 GuardArgumentNotNull(nameof(expectedSubset), expectedSubset); 243 GuardArgumentNotNull(nameof(expectedSuperset), expectedSuperset); 267 GuardArgumentNotNull(nameof(expectedSubset), expectedSubset); 291 GuardArgumentNotNull(nameof(expectedSuperset), expectedSuperset);
SetAsserts_aot.cs (4)
37 GuardArgumentNotNull(nameof(expected), expected); 99 GuardArgumentNotNull(nameof(expected), expected); 162 GuardArgumentNotNull(nameof(expected), expected); 225 GuardArgumentNotNull(nameof(expected), expected);
SkipAsserts.cs (3)
27 GuardArgumentNotNull(nameof(reason), reason); 46 GuardArgumentNotNull(nameof(reason), reason); 66 GuardArgumentNotNull(nameof(reason), reason);
StringAsserts.cs (12)
53 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 154 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 292 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 397 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 517 GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern); 546 GuardArgumentNotNull(nameof(expectedRegex), expectedRegex); 569 GuardArgumentNotNull(nameof(value), value); 707 GuardArgumentNotNull(nameof(expectedEndString), expectedEndString); 1105 GuardArgumentNotNull(nameof(expected), expected); 1372 GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern); 1392 GuardArgumentNotNull(nameof(expectedRegex), expectedRegex); 1530 GuardArgumentNotNull(nameof(expectedStartString), expectedStartString);
TypeAsserts.cs (4)
57 GuardArgumentNotNull(nameof(expectedType), expectedType); 91 GuardArgumentNotNull(nameof(expectedType), expectedType); 164 GuardArgumentNotNull(nameof(expectedType), expectedType); 257 GuardArgumentNotNull(nameof(expectedType), expectedType);