{"action":"created","issue":{"url":"https://api.github.com/repos/nunit/nunit/issues/3094","repository_url":"https://api.github.com/repos/nunit/nunit","labels_url":"https://api.github.com/repos/nunit/nunit/issues/3094/labels{/name}","comments_url":"https://api.github.com/repos/nunit/nunit/issues/3094/comments","events_url":"https://api.github.com/repos/nunit/nunit/issues/3094/events","html_url":"https://github.com/nunit/nunit/issues/3094","id":383803420,"node_id":"MDU6SXNzdWUzODM4MDM0MjA=","number":3094,"title":"Bad error message if collections have different types","user":{"login":"Dreamescaper","id":17177729,"node_id":"MDQ6VXNlcjE3MTc3NzI5","avatar_url":"https://avatars2.githubusercontent.com/u/17177729?v=4","gravatar_id":"","url":"https://api.github.com/users/Dreamescaper","html_url":"https://github.com/Dreamescaper","followers_url":"https://api.github.com/users/Dreamescaper/followers","following_url":"https://api.github.com/users/Dreamescaper/following{/other_user}","gists_url":"https://api.github.com/users/Dreamescaper/gists{/gist_id}","starred_url":"https://api.github.com/users/Dreamescaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dreamescaper/subscriptions","organizations_url":"https://api.github.com/users/Dreamescaper/orgs","repos_url":"https://api.github.com/users/Dreamescaper/repos","events_url":"https://api.github.com/users/Dreamescaper/events{/privacy}","received_events_url":"https://api.github.com/users/Dreamescaper/received_events","type":"User","site_admin":false},"labels":[{"id":61608516,"node_id":"MDU6TGFiZWw2MTYwODUxNg==","url":"https://api.github.com/repos/nunit/nunit/labels/is:enhancement","name":"is:enhancement","color":"84b6eb","default":false},{"id":61616865,"node_id":"MDU6TGFiZWw2MTYxNjg2NQ==","url":"https://api.github.com/repos/nunit/nunit/labels/pri:normal","name":"pri:normal","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"Dreamescaper","id":17177729,"node_id":"MDQ6VXNlcjE3MTc3NzI5","avatar_url":"https://avatars2.githubusercontent.com/u/17177729?v=4","gravatar_id":"","url":"https://api.github.com/users/Dreamescaper","html_url":"https://github.com/Dreamescaper","followers_url":"https://api.github.com/users/Dreamescaper/followers","following_url":"https://api.github.com/users/Dreamescaper/following{/other_user}","gists_url":"https://api.github.com/users/Dreamescaper/gists{/gist_id}","starred_url":"https://api.github.com/users/Dreamescaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dreamescaper/subscriptions","organizations_url":"https://api.github.com/users/Dreamescaper/orgs","repos_url":"https://api.github.com/users/Dreamescaper/repos","events_url":"https://api.github.com/users/Dreamescaper/events{/privacy}","received_events_url":"https://api.github.com/users/Dreamescaper/received_events","type":"User","site_admin":false},"assignees":[{"login":"Dreamescaper","id":17177729,"node_id":"MDQ6VXNlcjE3MTc3NzI5","avatar_url":"https://avatars2.githubusercontent.com/u/17177729?v=4","gravatar_id":"","url":"https://api.github.com/users/Dreamescaper","html_url":"https://github.com/Dreamescaper","followers_url":"https://api.github.com/users/Dreamescaper/followers","following_url":"https://api.github.com/users/Dreamescaper/following{/other_user}","gists_url":"https://api.github.com/users/Dreamescaper/gists{/gist_id}","starred_url":"https://api.github.com/users/Dreamescaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dreamescaper/subscriptions","organizations_url":"https://api.github.com/users/Dreamescaper/orgs","repos_url":"https://api.github.com/users/Dreamescaper/repos","events_url":"https://api.github.com/users/Dreamescaper/events{/privacy}","received_events_url":"https://api.github.com/users/Dreamescaper/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-11-23T12:13:49Z","updated_at":"2018-12-23T07:56:11Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"While framework supports checking equality of collections of different type, error message is not very informative in case of failure:\r\n\r\n```\r\nExpected is <System.String[1]>, actual is <System.Linq.Enumerable+SelectListIterator`2[NamespaceA.SomeType,System.String]>\r\n  Values differ at index [0]\r\n```\r\n\r\nPossible options to fix:\r\na) always log collections as items (e.g. \"< 1,2,3... >\"), ignoring type\r\nb) log actual and expected item where failed\r\n\r\n(Personally I prefer option a) )"},"comment":{"url":"https://api.github.com/repos/nunit/nunit/issues/comments/449620520","html_url":"https://github.com/nunit/nunit/issues/3094#issuecomment-449620520","issue_url":"https://api.github.com/repos/nunit/nunit/issues/3094","id":449620520,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTYyMDUyMA==","user":{"login":"Dreamescaper","id":17177729,"node_id":"MDQ6VXNlcjE3MTc3NzI5","avatar_url":"https://avatars2.githubusercontent.com/u/17177729?v=4","gravatar_id":"","url":"https://api.github.com/users/Dreamescaper","html_url":"https://github.com/Dreamescaper","followers_url":"https://api.github.com/users/Dreamescaper/followers","following_url":"https://api.github.com/users/Dreamescaper/following{/other_user}","gists_url":"https://api.github.com/users/Dreamescaper/gists{/gist_id}","starred_url":"https://api.github.com/users/Dreamescaper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dreamescaper/subscriptions","organizations_url":"https://api.github.com/users/Dreamescaper/orgs","repos_url":"https://api.github.com/users/Dreamescaper/repos","events_url":"https://api.github.com/users/Dreamescaper/events{/privacy}","received_events_url":"https://api.github.com/users/Dreamescaper/received_events","type":"User","site_admin":false},"created_at":"2018-12-23T07:56:11Z","updated_at":"2018-12-23T07:56:11Z","author_association":"CONTRIBUTOR","body":"I just thought that it might be more sense to log it like\r\n```\r\nValues differ at index [2]\r\nMissing: 3\r\n```\r\n\r\n(To have it similar to existing Missing/Extra messages, but with single element).\r\n\r\nUnlike currently suggested in PR fix, that would be couple of lines.\r\n\r\n@ChrisMaddock WDYT?"}}
{"actor":{"display_login":"Dreamescaper"}}