{"action":"created","issue":{"url":"https://api.github.com/repos/xunit/xunit/issues/1406","repository_url":"https://api.github.com/repos/xunit/xunit","labels_url":"https://api.github.com/repos/xunit/xunit/issues/1406/labels{/name}","comments_url":"https://api.github.com/repos/xunit/xunit/issues/1406/comments","events_url":"https://api.github.com/repos/xunit/xunit/issues/1406/events","html_url":"https://github.com/xunit/xunit/issues/1406","id":250174468,"number":1406,"title":"AD0001: AssertCollectionContainsShouldNotUseBoolCheck fails with ArgumentException","user":{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars0.githubusercontent.com/u/2696087?v=4","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-14T22:42:04Z","updated_at":"2017-08-15T01:10:25Z","closed_at":null,"body":"**Repro**\r\n\r\n1. Clone https://github.com/natemcmaster/KestrelHttpServer/tree/xunit-beta4\r\n6. Execute `build.cmd /t:Compile`\r\n\r\n**Error**\r\n```\r\nError AD0001 Analyzer 'Xunit.Analyzers.AssertCollectionContainsShouldNotUseBoolCheck' threw an exception of type 'System.ArgumentException' with message 'Wrong number of type arguments\r\nParameter name: typeArguments'.\tKestrel.Core.Tests(net461)\r\n\r\nAnalyzer 'Xunit.Analyzers.AssertCollectionContainsShouldNotUseBoolCheck' threw the following exception:\r\n'Exception occurred with following context:\r\nCompilation: Microsoft.AspNetCore.Server.Kestrel.Core.Tests\r\nSyntaxTree: C:\\dev\\aspnet\\KestrelHttpServer\\test\\Kestrel.Core.Tests\\FrameConnectionTests.cs\r\nSyntaxNode: Assert.True(pairs.ContainsKey(\"ConnectionId\" ... [InvocationExpressionSyntax]@[24279..24325) (550,12)-(550,58)\r\n\r\nSystem.ArgumentException: Wrong number of type arguments\r\nParameter name: typeArguments\r\n   at Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol.Construct(ImmutableArray`1 arguments, Boolean unbound)\r\n   at Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol.ConstructWithoutModifiers(ImmutableArray`1 arguments, Boolean unbound)\r\n   at Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol.Microsoft.CodeAnalysis.INamedTypeSymbol.Construct(ITypeSymbol[] arguments)\r\n   at Xunit.Analyzers.AssertCollectionContainsShouldNotUseBoolCheck.IsCollectionContainsMethod(SyntaxNodeAnalysisContext context, SymbolInfo symbolInfo)\r\n   at Xunit.Analyzers.AssertCollectionContainsShouldNotUseBoolCheck.Analyze(SyntaxNodeAnalysisContext context, InvocationExpressionSyntax invocation, IMethodSymbol method)\r\n   at Xunit.Analyzers.AssertUsageAnalyzerBase.<>c__DisplayClass5_0.<Initialize>b__1(SyntaxNodeAnalysisContext syntaxContext)\r\n   at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__43`1.<ExecuteSyntaxNodeAction>b__43_0(ValueTuple`2 data)\r\n   at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock[TArg](DiagnosticAnalyzer analyzer, Action`1 analyze, TArg argument, Nullable`1 info)\r\n```\r\n\r\ncc @marcind "},"comment":{"url":"https://api.github.com/repos/xunit/xunit/issues/comments/322350710","html_url":"https://github.com/xunit/xunit/issues/1406#issuecomment-322350710","issue_url":"https://api.github.com/repos/xunit/xunit/issues/1406","id":322350710,"user":{"login":"marcind","id":607223,"avatar_url":"https://avatars3.githubusercontent.com/u/607223?v=4","gravatar_id":"","url":"https://api.github.com/users/marcind","html_url":"https://github.com/marcind","followers_url":"https://api.github.com/users/marcind/followers","following_url":"https://api.github.com/users/marcind/following{/other_user}","gists_url":"https://api.github.com/users/marcind/gists{/gist_id}","starred_url":"https://api.github.com/users/marcind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcind/subscriptions","organizations_url":"https://api.github.com/users/marcind/orgs","repos_url":"https://api.github.com/users/marcind/repos","events_url":"https://api.github.com/users/marcind/events{/privacy}","received_events_url":"https://api.github.com/users/marcind/received_events","type":"User","site_admin":false},"created_at":"2017-08-15T01:10:24Z","updated_at":"2017-08-15T01:10:24Z","body":"Yes.\n"}}
{"actor":{"display_login":"marcind"}}