212 references to GuardArgumentNotNull
xunit.assert (212)
CollectionAsserts.cs (31)
52 GuardArgumentNotNull(nameof(collection), collection); 53 GuardArgumentNotNull(nameof(action), action); 70 GuardArgumentNotNull(nameof(collection), collection); 71 GuardArgumentNotNull(nameof(action), action); 106 GuardArgumentNotNull(nameof(collection), collection); 107 GuardArgumentNotNull(nameof(action), action); 124 GuardArgumentNotNull(nameof(collection), collection); 125 GuardArgumentNotNull(nameof(action), action); 160 GuardArgumentNotNull(nameof(collection), collection); 161 GuardArgumentNotNull(nameof(elementInspectors), elementInspectors); 201 GuardArgumentNotNull(nameof(collection), collection); 202 GuardArgumentNotNull(nameof(elementInspectors), elementInspectors); 241 GuardArgumentNotNull(nameof(collection), collection); 277 GuardArgumentNotNull(nameof(collection), collection); 278 GuardArgumentNotNull(nameof(comparer), comparer); 296 GuardArgumentNotNull(nameof(collection), collection); 297 GuardArgumentNotNull(nameof(filter), filter); 329 GuardArgumentNotNull(nameof(collection), collection); 330 GuardArgumentNotNull(nameof(comparer), comparer); 353 GuardArgumentNotNull(nameof(collection), collection); 389 GuardArgumentNotNull(nameof(collection), collection); 390 GuardArgumentNotNull(nameof(comparer), comparer); 427 GuardArgumentNotNull(nameof(collection), collection); 428 GuardArgumentNotNull(nameof(filter), filter); 461 GuardArgumentNotNull(nameof(collection), collection); 539 GuardArgumentNotNull(nameof(collection), collection); 627 GuardArgumentNotNull(nameof(collection), collection); 650 GuardArgumentNotNull(nameof(collection), collection); 666 GuardArgumentNotNull(nameof(collection), collection); 687 GuardArgumentNotNull(nameof(collection), collection); 688 GuardArgumentNotNull(nameof(predicate), predicate);
DictionaryAsserts.cs (8)
56 GuardArgumentNotNull(nameof(expected), expected); 57 GuardArgumentNotNull(nameof(collection), collection); 90 GuardArgumentNotNull(nameof(expected), expected); 91 GuardArgumentNotNull(nameof(collection), collection); 213 GuardArgumentNotNull(nameof(expected), expected); 214 GuardArgumentNotNull(nameof(collection), collection); 239 GuardArgumentNotNull(nameof(expected), expected); 240 GuardArgumentNotNull(nameof(collection), collection);
EqualityAsserts.cs (2)
146 GuardArgumentNotNull(nameof(comparer), comparer); 664 GuardArgumentNotNull(nameof(comparer), comparer);
EventAsserts.cs (22)
336 GuardArgumentNotNull(nameof(attach), attach); 337 GuardArgumentNotNull(nameof(detach), detach); 338 GuardArgumentNotNull(nameof(testCode), testCode); 358 GuardArgumentNotNull(nameof(attach), attach); 359 GuardArgumentNotNull(nameof(detach), detach); 360 GuardArgumentNotNull(nameof(testCode), testCode); 426 GuardArgumentNotNull(nameof(handler), handler); 427 GuardArgumentNotNull(nameof(attach), attach); 428 GuardArgumentNotNull(nameof(detach), detach); 429 GuardArgumentNotNull(nameof(testCode), testCode); 442 GuardArgumentNotNull(nameof(attach), attach); 443 GuardArgumentNotNull(nameof(detach), detach); 444 GuardArgumentNotNull(nameof(testCode), testCode); 464 GuardArgumentNotNull(nameof(attach), attach); 465 GuardArgumentNotNull(nameof(detach), detach); 466 GuardArgumentNotNull(nameof(testCode), testCode); 489 GuardArgumentNotNull(nameof(attach), attach); 490 GuardArgumentNotNull(nameof(detach), detach); 491 GuardArgumentNotNull(nameof(testCode), testCode); 511 GuardArgumentNotNull(nameof(attach), attach); 512 GuardArgumentNotNull(nameof(detach), detach); 513 GuardArgumentNotNull(nameof(testCode), testCode);
ExceptionAsserts.cs (2)
39 GuardArgumentNotNull(nameof(exceptionType), exceptionType); 197 GuardArgumentNotNull(nameof(exceptionType), exceptionType);
MemoryAsserts.cs (3)
99 GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory); 175 GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory); 238 GuardArgumentNotNull(nameof(expectedMemory), expectedMemory);
PropertyAsserts.cs (6)
40 GuardArgumentNotNull(nameof(@object), @object); 41 GuardArgumentNotNull(nameof(propertyName), propertyName); 42 GuardArgumentNotNull(nameof(testCode), testCode); 87 GuardArgumentNotNull(nameof(@object), @object); 88 GuardArgumentNotNull(nameof(propertyName), propertyName); 89 GuardArgumentNotNull(nameof(testCode), testCode);
RangeAsserts.cs (8)
55 GuardArgumentNotNull(nameof(actual), actual); 56 GuardArgumentNotNull(nameof(low), low); 57 GuardArgumentNotNull(nameof(high), high); 58 GuardArgumentNotNull(nameof(comparer), comparer); 94 GuardArgumentNotNull(nameof(actual), actual); 95 GuardArgumentNotNull(nameof(low), low); 96 GuardArgumentNotNull(nameof(high), high); 97 GuardArgumentNotNull(nameof(comparer), comparer);
Record.cs (3)
42 GuardArgumentNotNull(nameof(testCode), testCode); 72 GuardArgumentNotNull(nameof(testCode), testCode); 110 GuardArgumentNotNull(nameof(testCode), testCode);
Sdk\AssertHelper.cs (1)
693 Assert.GuardArgumentNotNull(nameof(prefix), prefix);
Sdk\CollectionTracker.cs (2)
105 Assert.GuardArgumentNotNull(nameof(itemComparer), itemComparer); 674 Assert.GuardArgumentNotNull(nameof(collection), collection);
Sdk\CollectionTrackerExtensions.cs (1)
125 Assert.GuardArgumentNotNull(nameof(tracker), tracker);
Sdk\Exceptions\AllException.cs (1)
44 Assert.GuardArgumentNotNull(nameof(errors), errors);
Sdk\Exceptions\CollectionException.cs (2)
76 Assert.GuardArgumentNotNull(nameof(exception), exception); 104 Assert.GuardArgumentNotNull(nameof(formattedCollection), formattedCollection),
Sdk\Exceptions\ContainsException.cs (12)
42 Assert.GuardArgumentNotNull(nameof(collection), collection) 60 Assert.GuardArgumentNotNull(nameof(collection), collection), 62 Assert.GuardArgumentNotNull(nameof(item), item) 80 Assert.GuardArgumentNotNull(nameof(keys), keys), 82 Assert.GuardArgumentNotNull(nameof(expectedKey), expectedKey) 100 Assert.GuardArgumentNotNull(nameof(set), set), 102 Assert.GuardArgumentNotNull(nameof(item), item) 120 Assert.GuardArgumentNotNull(nameof(memory), memory), 122 Assert.GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory) 140 Assert.GuardArgumentNotNull(nameof(span), span), 142 Assert.GuardArgumentNotNull(nameof(expectedSubSpan), expectedSubSpan) 166 AssertHelper.ShortenAndEncodeString(Assert.GuardArgumentNotNull(nameof(expectedSubString), expectedSubString))
Sdk\Exceptions\DistinctException.cs (2)
43 Assert.GuardArgumentNotNull(nameof(collection), collection), 45 Assert.GuardArgumentNotNull(nameof(item), item)
Sdk\Exceptions\DoesNotContainException.cs (13)
45 Assert.GuardArgumentNotNull(nameof(collection), collection); 71 Assert.GuardArgumentNotNull(nameof(item), item); 72 Assert.GuardArgumentNotNull(nameof(collection), collection); 98 Assert.GuardArgumentNotNull(nameof(keys), keys), 100 Assert.GuardArgumentNotNull(nameof(expectedKey), expectedKey) 118 Assert.GuardArgumentNotNull(nameof(set), set), 120 Assert.GuardArgumentNotNull(nameof(item), item) 138 Assert.GuardArgumentNotNull(nameof(expectedSubMemory), expectedSubMemory); 139 Assert.GuardArgumentNotNull(nameof(memory), memory); 165 Assert.GuardArgumentNotNull(nameof(expectedSubSpan), expectedSubSpan); 166 Assert.GuardArgumentNotNull(nameof(span), span); 190 Assert.GuardArgumentNotNull(nameof(expectedSubString), expectedSubString); 191 Assert.GuardArgumentNotNull(nameof(@string), @string);
Sdk\Exceptions\DoesNotMatchException.cs (2)
52 Assert.GuardArgumentNotNull(nameof(@string), @string), 54 Assert.GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern)
Sdk\Exceptions\EmptyException.cs (2)
41 Assert.GuardArgumentNotNull(nameof(collection), collection) 56 AssertHelper.ShortenAndEncodeString(Assert.GuardArgumentNotNull(nameof(value), value))
Sdk\Exceptions\EqualException.cs (1)
109 Assert.GuardArgumentNotNull(nameof(actual), actual);
Sdk\Exceptions\EquivalentException.cs (13)
60 Assert.GuardArgumentNotNull(nameof(memberName), memberName) 78 Assert.GuardArgumentNotNull(nameof(memberName), memberName) 127 FormatMemberNameList(Assert.GuardArgumentNotNull(nameof(expectedMemberNames), expectedMemberNames), prefix), 129 FormatMemberNameList(Assert.GuardArgumentNotNull(nameof(actualMemberNames), actualMemberNames), prefix) 161 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, ": Mismatched value on member '{0}'", memberName), 191 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName), 226 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName), 228 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 230 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actualLeftovers), actualLeftovers)), 231 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual)) 254 Assert.GuardArgumentNotNull(nameof(memberName), memberName).Length == 0 ? string.Empty : string.Format(CultureInfo.CurrentCulture, " in member '{0}'", memberName), 256 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(expectedType), expectedType), fullTypeName: true), 258 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(actualType), actualType), fullTypeName: true)
Sdk\Exceptions\ExceptionUtility.cs (1)
29 Assert.GuardArgumentNotNull(nameof(stackFrame), stackFrame);
Sdk\Exceptions\InRangeException.cs (3)
45 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(low), low)), 46 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(high), high)), 48 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual))
Sdk\Exceptions\IsAssignableFromException.cs (1)
51 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)),
Sdk\Exceptions\IsNotAssignableFromException.cs (2)
43 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 45 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType())
Sdk\Exceptions\IsNotTypeException.cs (1)
37 Assert.GuardArgumentNotNull(nameof(type), type);
Sdk\Exceptions\IsTypeException.cs (1)
48 Assert.GuardArgumentNotNull(nameof(expectedTypeName), expectedTypeName),
Sdk\Exceptions\MatchesException.cs (1)
47 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern)),
Sdk\Exceptions\MultipleException.cs (1)
31 Assert.GuardArgumentNotNull(nameof(innerExceptions), innerExceptions);
Sdk\Exceptions\NotEqualException.cs (4)
85 Assert.GuardArgumentNotNull(nameof(expected), expected); 86 Assert.GuardArgumentNotNull(nameof(actual), actual); 161 Assert.GuardArgumentNotNull(nameof(expected), expected), 163 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\NotInRangeException.cs (3)
45 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(low), low)), 46 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(high), high)), 48 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual))
Sdk\Exceptions\NotNullException.cs (1)
39 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(type), type))
Sdk\Exceptions\NotStrictEqualException.cs (2)
43 Assert.GuardArgumentNotNull(nameof(expected), expected), 45 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\NullException.cs (2)
52 ArgumentFormatter.FormatTypeName(Assert.GuardArgumentNotNull(nameof(type), type)), 78 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual))
Sdk\Exceptions\ProperSubsetException.cs (2)
43 Assert.GuardArgumentNotNull(nameof(expected), expected), 45 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\ProperSupersetException.cs (2)
43 Assert.GuardArgumentNotNull(nameof(expected), expected), 45 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\PropertyChangedException.cs (1)
38 Assert.GuardArgumentNotNull(nameof(propertyName), propertyName)
Sdk\Exceptions\RaisesAnyException.cs (1)
40 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)),
Sdk\Exceptions\RaisesException.cs (3)
43 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 45 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual)) 67 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)),
Sdk\Exceptions\SameException.cs (2)
43 Assert.GuardArgumentNotNull(nameof(expected), expected), 45 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\SingleException.cs (3)
46 Assert.GuardArgumentNotNull(nameof(collection), collection); 81 Assert.GuardArgumentNotNull(nameof(collection), collection); 82 Assert.GuardArgumentNotNull(nameof(matchIndices), matchIndices);
Sdk\Exceptions\SkipException.cs (1)
39 Assert.GuardArgumentNotNull(nameof(message), message)
Sdk\Exceptions\StrictEqualException.cs (2)
43 Assert.GuardArgumentNotNull(nameof(expected), expected), 45 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\SubsetException.cs (2)
43 Assert.GuardArgumentNotNull(nameof(expected), expected), 45 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\SupersetException.cs (2)
43 Assert.GuardArgumentNotNull(nameof(expected), expected), 45 Assert.GuardArgumentNotNull(nameof(actual), actual)
Sdk\Exceptions\ThrowsAnyException.cs (3)
52 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 54 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType()) 70 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected))
Sdk\Exceptions\ThrowsException.cs (4)
52 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 54 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(actual), actual).GetType()) 80 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected)), 99 ArgumentFormatter.Format(Assert.GuardArgumentNotNull(nameof(expected), expected))
SetAsserts.cs (8)
40 GuardArgumentNotNull(nameof(set), set); 67 GuardArgumentNotNull(nameof(set), set); 139 GuardArgumentNotNull(nameof(set), set); 165 GuardArgumentNotNull(nameof(set), set); 255 GuardArgumentNotNull(nameof(expectedSubset), expectedSubset); 284 GuardArgumentNotNull(nameof(expectedSuperset), expectedSuperset); 308 GuardArgumentNotNull(nameof(expectedSubset), expectedSubset); 332 GuardArgumentNotNull(nameof(expectedSuperset), expectedSuperset);
StringAsserts.cs (12)
63 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 166 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 306 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 413 GuardArgumentNotNull(nameof(expectedSubstring), expectedSubstring); 535 GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern); 565 GuardArgumentNotNull(nameof(expectedRegex), expectedRegex); 589 GuardArgumentNotNull(nameof(value), value); 729 GuardArgumentNotNull(nameof(expectedEndString), expectedEndString); 1089 GuardArgumentNotNull(nameof(expected), expected); 1362 GuardArgumentNotNull(nameof(expectedRegexPattern), expectedRegexPattern); 1382 GuardArgumentNotNull(nameof(expectedRegex), expectedRegex); 1522 GuardArgumentNotNull(nameof(expectedStartString), expectedStartString);
TypeAsserts.cs (4)
65 GuardArgumentNotNull(nameof(expectedType), expectedType); 99 GuardArgumentNotNull(nameof(expectedType), expectedType); 134 GuardArgumentNotNull(nameof(expectedType), expectedType); 173 GuardArgumentNotNull(nameof(expectedType), expectedType);