{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/testfx/issues/199","repository_url":"https://api.github.com/repos/Microsoft/testfx","labels_url":"https://api.github.com/repos/Microsoft/testfx/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/testfx/issues/199/comments","events_url":"https://api.github.com/repos/Microsoft/testfx/issues/199/events","html_url":"https://github.com/Microsoft/testfx/issues/199","id":235757330,"number":199,"title":"Backwards Compatibility: TestMethods require zero parameters","user":{"login":"MikeChristensen","id":6528426,"avatar_url":"https://avatars3.githubusercontent.com/u/6528426?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeChristensen","html_url":"https://github.com/MikeChristensen","followers_url":"https://api.github.com/users/MikeChristensen/followers","following_url":"https://api.github.com/users/MikeChristensen/following{/other_user}","gists_url":"https://api.github.com/users/MikeChristensen/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeChristensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeChristensen/subscriptions","organizations_url":"https://api.github.com/users/MikeChristensen/orgs","repos_url":"https://api.github.com/users/MikeChristensen/repos","events_url":"https://api.github.com/users/MikeChristensen/events{/privacy}","received_events_url":"https://api.github.com/users/MikeChristensen/received_events","type":"User","site_admin":false},"labels":[{"id":420464975,"url":"https://api.github.com/repos/Microsoft/testfx/labels/bug","name":"bug","color":"ee0701","default":true},{"id":554361091,"url":"https://api.github.com/repos/Microsoft/testfx/labels/up-for-grabs","name":"up-for-grabs","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-14T04:08:39Z","updated_at":"2018-04-03T10:12:38Z","closed_at":null,"author_association":"NONE","body":"## Description\r\nUpon upgrading unit tests from legacy MSTest to MSTest v2, I ran into the following breaking change.  TestMethods throw exceptions if there are parameters, rather than getting skipped.\r\n\r\n## Steps to reproduce\r\nRepro code:\r\n\r\n```\r\n    [TestClass]\r\n    public class UnitTests\r\n    {\r\n        [TestMethod]\r\n        public void Works()\r\n        {\r\n            Assert.IsTrue(true);\r\n        }\r\n\r\n        [TestMethod]\r\n        public void Breaks(string name)\r\n        {\r\n            Assert.IsTrue(true);\r\n        }\r\n\r\n        [TestMethod]\r\n        public void AlsoBreaks(bool flag = false)\r\n        {\r\n            Assert.IsTrue(true);\r\n        }\r\n    }\r\n```\r\n\r\n## Expected behavior\r\nLegacy MSTest would ignore these methods completely.  No errors or exceptions and they wouldn't get run.  It would be somewhat useful if \"AlsoBreaks\" would get run using the default parameter values.\r\n\r\n## Actual behavior\r\nUnit test framework throws a cryptic exception: \"Parameter count mismatch\".\r\n\r\n## Environment\r\nVersion .18 of MSTest on VS2015"},"comment":{"url":"https://api.github.com/repos/Microsoft/testfx/issues/comments/378199770","html_url":"https://github.com/Microsoft/testfx/issues/199#issuecomment-378199770","issue_url":"https://api.github.com/repos/Microsoft/testfx/issues/199","id":378199770,"user":{"login":"ShreyasRmsft","id":25194518,"avatar_url":"https://avatars1.githubusercontent.com/u/25194518?v=4","gravatar_id":"","url":"https://api.github.com/users/ShreyasRmsft","html_url":"https://github.com/ShreyasRmsft","followers_url":"https://api.github.com/users/ShreyasRmsft/followers","following_url":"https://api.github.com/users/ShreyasRmsft/following{/other_user}","gists_url":"https://api.github.com/users/ShreyasRmsft/gists{/gist_id}","starred_url":"https://api.github.com/users/ShreyasRmsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShreyasRmsft/subscriptions","organizations_url":"https://api.github.com/users/ShreyasRmsft/orgs","repos_url":"https://api.github.com/users/ShreyasRmsft/repos","events_url":"https://api.github.com/users/ShreyasRmsft/events{/privacy}","received_events_url":"https://api.github.com/users/ShreyasRmsft/received_events","type":"User","site_admin":false},"created_at":"2018-04-03T10:12:38Z","updated_at":"2018-04-03T10:12:38Z","author_association":"MEMBER","body":"We need to check if methodinfo has params for a dd test if not throw the same exception message legacy framework used to throw"}}
{"actor":{"display_login":"ShreyasRmsft"}}