{"action":"closed","issue":{"url":"https://api.github.com/repos/xunit/xunit/issues/546","labels_url":"https://api.github.com/repos/xunit/xunit/issues/546/labels{/name}","comments_url":"https://api.github.com/repos/xunit/xunit/issues/546/comments","events_url":"https://api.github.com/repos/xunit/xunit/issues/546/events","html_url":"https://github.com/xunit/xunit/issues/546","id":101733841,"number":546,"title":"Extending TheoryAttribute and enabling Skip in debug mode breaks the functionality, InlineData stops being passed on","user":{"login":"geoarion","id":1941510,"avatar_url":"https://avatars.githubusercontent.com/u/1941510?v=3","gravatar_id":"","url":"https://api.github.com/users/geoarion","html_url":"https://github.com/geoarion","followers_url":"https://api.github.com/users/geoarion/followers","following_url":"https://api.github.com/users/geoarion/following{/other_user}","gists_url":"https://api.github.com/users/geoarion/gists{/gist_id}","starred_url":"https://api.github.com/users/geoarion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoarion/subscriptions","organizations_url":"https://api.github.com/users/geoarion/orgs","repos_url":"https://api.github.com/users/geoarion/repos","events_url":"https://api.github.com/users/geoarion/events{/privacy}","received_events_url":"https://api.github.com/users/geoarion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xunit/xunit/labels/[a]%20visualstudio.xunit","name":"[a] visualstudio.xunit","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-18T19:42:57Z","updated_at":"2015-08-19T15:30:16Z","closed_at":"2015-08-19T15:30:16Z","body":"Env: VS 2015 Enterprise, WinServer 2012R2, .Net 4.6 test project, XUnit 2.0\r\n\r\nIt seems that enabling skip (in debug mode) for a class extending TheoryAttribute causes xunit (or VS) to not pass on the Inline data.\r\n\r\nError when trying to debug the test case:\r\n**System.InvalidOperationException: The test method expected 1 parameter value, but 0 parameter values were provided.**\r\n\r\nNew attribute is:\r\n```c#\r\n    public class RunnableInDebugOnlyTheoryAttribute : TheoryAttribute\r\n    {\r\n        public RunnableInDebugOnlyTheoryAttribute()\r\n        {\r\n            if (!Debugger.IsAttached)\r\n            {\r\n               this.Skip = \"This test will only run when debugging it!\";\r\n            }\r\n        }\r\n    }\r\n```\r\n\r\nUsage:\r\n```c#\r\n        [RunnableInDebugOnlyTheory]\r\n        [InlineData(3)]\r\n        [InlineData(5)]\r\n        [InlineData(6)]\r\n        public void MyFirstTheory(int value)\r\n        {\r\n            Assert.True(true);\r\n        }\r\n```\r\n\r\nNote: the same technique, for **FactAttribute** seems to work just fine."}}