{"action":"created","issue":{"url":"https://api.github.com/repos/xunit/xunit/issues/1753","repository_url":"https://api.github.com/repos/xunit/xunit","labels_url":"https://api.github.com/repos/xunit/xunit/issues/1753/labels{/name}","comments_url":"https://api.github.com/repos/xunit/xunit/issues/1753/comments","events_url":"https://api.github.com/repos/xunit/xunit/issues/1753/events","html_url":"https://github.com/xunit/xunit/issues/1753","id":336254865,"node_id":"MDU6SXNzdWUzMzYyNTQ4NjU=","number":1753,"title":"xUnit2002 quick fix deletes preceding comments and white lines","user":{"login":"VSDekar","id":8400490,"node_id":"MDQ6VXNlcjg0MDA0OTA=","avatar_url":"https://avatars3.githubusercontent.com/u/8400490?v=4","gravatar_id":"","url":"https://api.github.com/users/VSDekar","html_url":"https://github.com/VSDekar","followers_url":"https://api.github.com/users/VSDekar/followers","following_url":"https://api.github.com/users/VSDekar/following{/other_user}","gists_url":"https://api.github.com/users/VSDekar/gists{/gist_id}","starred_url":"https://api.github.com/users/VSDekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VSDekar/subscriptions","organizations_url":"https://api.github.com/users/VSDekar/orgs","repos_url":"https://api.github.com/users/VSDekar/repos","events_url":"https://api.github.com/users/VSDekar/events{/privacy}","received_events_url":"https://api.github.com/users/VSDekar/received_events","type":"User","site_admin":false},"labels":[{"id":599667809,"node_id":"MDU6TGFiZWw1OTk2Njc4MDk=","url":"https://api.github.com/repos/xunit/xunit/labels/area:%20Analyzers","name":"area: Analyzers","color":"0052cc","default":false},{"id":75574707,"node_id":"MDU6TGFiZWw3NTU3NDcwNw==","url":"https://api.github.com/repos/xunit/xunit/labels/type:%20Bug","name":"type: Bug","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-27T14:29:02Z","updated_at":"2018-06-28T08:18:52Z","closed_at":null,"author_association":"NONE","body":"I found a little bug with the xUnit2002 quick fix Do not use Assert.NotNull() on value type 'XY'.\r\n\r\nUsed Version:\r\n2.4.0-beta.2.build4010\r\n&\r\n2.3.1\r\n\r\nRepro:\r\n\r\n```\r\nusing System;\r\nusing Xunit;\r\n\r\nnamespace XUnitTestProject1\r\n{\r\n    public class UnitTest1\r\n    {\r\n        [Fact]\r\n        public void Test1()\r\n        {\r\n            int i = 1;\r\n\r\n            // I am a comment which gets deleted by the quick fix\r\n            // Assert\r\n            Assert.NotNull(i);\r\n            Assert.Null(null);\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nAfter quick fix:\r\n```\r\nusing System;\r\nusing Xunit;\r\n\r\nnamespace XUnitTestProject1\r\n{\r\n    public class UnitTest1\r\n    {\r\n        [Fact]\r\n        public void Test1()\r\n        {\r\n            int i = 1;\r\n            Assert.Null(null);\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nMy expectation:\r\n```\r\nusing System;\r\nusing Xunit;\r\n\r\nnamespace XUnitTestProject1\r\n{\r\n    public class UnitTest1\r\n    {\r\n        [Fact]\r\n        public void Test1()\r\n        {\r\n            int i = 1;\r\n\r\n            // I am a comment which gets deleted by the quick fix\r\n            // Assert\r\n            Assert.Null(null);\r\n        }\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/xunit/xunit/issues/comments/400952806","html_url":"https://github.com/xunit/xunit/issues/1753#issuecomment-400952806","issue_url":"https://api.github.com/repos/xunit/xunit/issues/1753","id":400952806,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDk1MjgwNg==","user":{"login":"wachulski","id":1669844,"node_id":"MDQ6VXNlcjE2Njk4NDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1669844?v=4","gravatar_id":"","url":"https://api.github.com/users/wachulski","html_url":"https://github.com/wachulski","followers_url":"https://api.github.com/users/wachulski/followers","following_url":"https://api.github.com/users/wachulski/following{/other_user}","gists_url":"https://api.github.com/users/wachulski/gists{/gist_id}","starred_url":"https://api.github.com/users/wachulski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wachulski/subscriptions","organizations_url":"https://api.github.com/users/wachulski/orgs","repos_url":"https://api.github.com/users/wachulski/repos","events_url":"https://api.github.com/users/wachulski/events{/privacy}","received_events_url":"https://api.github.com/users/wachulski/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T08:18:52Z","updated_at":"2018-06-28T08:18:52Z","author_association":"NONE","body":"I'm working on it"}}
{"actor":{"display_login":"wachulski"}}