@@ -410,6 +410,38 @@ public void AssertStringDoesNotContain_TestAnalyzer(string assertion) =>
410410 public void AssertStringDoesNotContain_TestCodeFix ( string oldAssertion , string newAssertion )
411411 => VerifyCSharpFix < AssertDoesNotContainCodeFix , AssertDoesNotContainAnalyzer > ( "string actual, string expected" , oldAssertion , newAssertion ) ;
412412
413+
414+ [ DataTestMethod ]
415+ [ DataRow ( "Assert.DoesNotContain(expected, actual);" , "ISet<string> actual, string expected" ) ]
416+ [ DataRow ( "Assert.DoesNotContain(expected, actual);" , "IReadOnlySet<string> actual, string expected" ) ]
417+ [ DataRow ( "Assert.DoesNotContain(expected, actual);" , "HashSet<string> actual, string expected" ) ]
418+ [ DataRow ( "Assert.DoesNotContain(expected, actual);" , "ImmutableHashSet<string> actual, string expected" ) ]
419+ [ Implemented ]
420+ public void AssertSetDoesNotContain_TestAnalyzer ( string assertion , string arguments ) =>
421+ VerifyCSharpDiagnostic < AssertDoesNotContainAnalyzer > ( arguments , assertion ) ;
422+
423+ [ DataTestMethod ]
424+ [ DataRow (
425+ /* oldAssertion: */ "Assert.DoesNotContain(expected, actual);" ,
426+ /* newAssertion: */ "actual.Should().NotContain(expected);" ,
427+ /* arguments: */ "ISet<string> actual, string expected" ) ]
428+ [ DataRow (
429+ /* oldAssertion: */ "Assert.DoesNotContain(expected, actual);" ,
430+ /* newAssertion: */ "actual.Should().NotContain(expected);" ,
431+ /* arguments: */ "IReadOnlySet<string> actual, string expected" ) ]
432+ [ DataRow (
433+ /* oldAssertion: */ "Assert.DoesNotContain(expected, actual);" ,
434+ /* newAssertion: */ "actual.Should().NotContain(expected);" ,
435+ /* arguments: */ "HashSet<string> actual, string expected" ) ]
436+ [ DataRow (
437+ /* oldAssertion: */ "Assert.DoesNotContain(expected, actual);" ,
438+ /* newAssertion: */ "actual.Should().NotContain(expected);" ,
439+ /* arguments: */ "ImmutableHashSet<string> actual, string expected" ) ]
440+ [ Implemented ]
441+ public void AssertSetDoesNotContain_TestCodeFix ( string oldAssertion , string newAssertion , string arguments )
442+ => VerifyCSharpFix < AssertDoesNotContainCodeFix , AssertDoesNotContainAnalyzer > ( arguments , oldAssertion , newAssertion ) ;
443+
444+
413445 [ DataTestMethod ]
414446 [ DataRow ( "Assert.Matches(expectedRegexPattern, actual);" ) ]
415447 [ Implemented ]
0 commit comments