{"action":"created","issue":{"url":"https://api.github.com/repos/nunit/nunit.analyzers/issues/3","repository_url":"https://api.github.com/repos/nunit/nunit.analyzers","labels_url":"https://api.github.com/repos/nunit/nunit.analyzers/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/nunit/nunit.analyzers/issues/3/comments","events_url":"https://api.github.com/repos/nunit/nunit.analyzers/issues/3/events","html_url":"https://github.com/nunit/nunit.analyzers/issues/3","id":192010946,"number":3,"title":"ClassicModelAssertUsageAnalyser throws InvalidOperationException","user":{"login":"ChrisMaddock","id":4837132,"avatar_url":"https://avatars.githubusercontent.com/u/4837132?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisMaddock","html_url":"https://github.com/ChrisMaddock","followers_url":"https://api.github.com/users/ChrisMaddock/followers","following_url":"https://api.github.com/users/ChrisMaddock/following{/other_user}","gists_url":"https://api.github.com/users/ChrisMaddock/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisMaddock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisMaddock/subscriptions","organizations_url":"https://api.github.com/users/ChrisMaddock/orgs","repos_url":"https://api.github.com/users/ChrisMaddock/repos","events_url":"https://api.github.com/users/ChrisMaddock/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisMaddock/received_events","type":"User","site_admin":false},"labels":[{"id":484877283,"url":"https://api.github.com/repos/nunit/nunit.analyzers/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-11-28T13:51:48Z","updated_at":"2016-11-29T03:35:21Z","closed_at":null,"body":"I haven't looked in to this too much, but I believe it may be when it encounters a property in the TestFixture class. \r\n\r\n```\r\nError\tAD0001\tAnalyzer 'NUnit.Analyzers.ClassicModelAssertUsage.ClassicModelAssertUsageAnalyzer' threw an exception of type 'System.InvalidOperationException' with message 'Sequence contains no elements'.\tXXX\t\t1\tActive\tAnalyzer 'NUnit.Analyzers.ClassicModelAssertUsage.ClassicModelAssertUsageAnalyzer' threw the following exception:\r\n'Exception occurred with following context:\r\nCompilation: XXX\r\nSyntaxTree: XXX\r\nSyntaxNode: XXX[InvocationExpressionSyntax]@[6922..6945) (162,25)-(162,48)\r\n\r\nSystem.InvalidOperationException: Sequence contains no elements\r\n   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)\r\n   at NUnit.Analyzers.ClassicModelAssertUsage.ClassicModelAssertUsageAnalyzer.AnalyzeInvocation(SyntaxNodeAnalysisContext context)\r\n   at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass42_1`1.<ExecuteSyntaxNodeAction>b__1()\r\n   at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock(DiagnosticAnalyzer analyzer, Action analyze, Nullable`1 info)\r\n-----\r\n'.\r\n```"},"comment":{"url":"https://api.github.com/repos/nunit/nunit.analyzers/issues/comments/263467287","html_url":"https://github.com/nunit/nunit.analyzers/issues/3#issuecomment-263467287","issue_url":"https://api.github.com/repos/nunit/nunit.analyzers/issues/3","id":263467287,"user":{"login":"JasonBock","id":904213,"avatar_url":"https://avatars.githubusercontent.com/u/904213?v=3","gravatar_id":"","url":"https://api.github.com/users/JasonBock","html_url":"https://github.com/JasonBock","followers_url":"https://api.github.com/users/JasonBock/followers","following_url":"https://api.github.com/users/JasonBock/following{/other_user}","gists_url":"https://api.github.com/users/JasonBock/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonBock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonBock/subscriptions","organizations_url":"https://api.github.com/users/JasonBock/orgs","repos_url":"https://api.github.com/users/JasonBock/repos","events_url":"https://api.github.com/users/JasonBock/events{/privacy}","received_events_url":"https://api.github.com/users/JasonBock/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T03:35:21Z","updated_at":"2016-11-29T03:35:21Z","body":"I created a project that referenced the NuGet package as well as the NUnit package and the analyzers worked just fine. So....I'm not sure how to get the issues being reported here...."}}
{"actor":{"display_login":"JasonBock"}}