Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 35a9843

Browse files
committed
Merge pull request #2623 from mellinoe/rename-assertion-helper
Delete 'Assert.None' helper methods
2 parents 26a5702 + 0ad2026 commit 35a9843

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/Common/tests/System/Diagnostics/AssertWithCallerAttributes.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -274,27 +274,6 @@ public static T IsType<T>(object @object,
274274
catch (Exception e) { throw WrapException(e, path, line); }
275275
}
276276

277-
public static void None(IEnumerable collection, object expected,
278-
[CallerFilePath] string path = null, [CallerLineNumber] int line = 0)
279-
{
280-
try { Xunit.Assert.DoesNotContain(expected, (IEnumerable<object>)collection); }
281-
catch (Exception e) { throw WrapException(e, path, line); }
282-
}
283-
284-
public static void None<T>(IEnumerable<T> collection, Predicate<T> predicate,
285-
[CallerFilePath] string path = null, [CallerLineNumber] int line = 0)
286-
{
287-
try { Xunit.Assert.DoesNotContain(collection, predicate); }
288-
catch (Exception e) { throw WrapException(e, path, line); }
289-
}
290-
291-
public static void None<T>(IEnumerable<T> collection, T expected,
292-
[CallerFilePath] string path = null, [CallerLineNumber] int line = 0)
293-
{
294-
try { Xunit.Assert.DoesNotContain(expected, collection); }
295-
catch (Exception e) { throw WrapException(e, path, line); }
296-
}
297-
298277
public static void NotEmpty(IEnumerable collection,
299278
[CallerFilePath] string path = null, [CallerLineNumber] int line = 0)
300279
{

0 commit comments

Comments
 (0)