{"action":"closed","issue":{"url":"https://api.github.com/repos/nunit/nunit/issues/1299","repository_url":"https://api.github.com/repos/nunit/nunit","labels_url":"https://api.github.com/repos/nunit/nunit/issues/1299/labels{/name}","comments_url":"https://api.github.com/repos/nunit/nunit/issues/1299/comments","events_url":"https://api.github.com/repos/nunit/nunit/issues/1299/events","html_url":"https://github.com/nunit/nunit/issues/1299","id":137141162,"number":1299,"title":"Test fixture properties are not inherited by tests","user":{"login":"yaakov-h","id":426009,"avatar_url":"https://avatars.githubusercontent.com/u/426009?v=3","gravatar_id":"","url":"https://api.github.com/users/yaakov-h","html_url":"https://github.com/yaakov-h","followers_url":"https://api.github.com/users/yaakov-h/followers","following_url":"https://api.github.com/users/yaakov-h/following{/other_user}","gists_url":"https://api.github.com/users/yaakov-h/gists{/gist_id}","starred_url":"https://api.github.com/users/yaakov-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaakov-h/subscriptions","organizations_url":"https://api.github.com/users/yaakov-h/orgs","repos_url":"https://api.github.com/users/yaakov-h/repos","events_url":"https://api.github.com/users/yaakov-h/events{/privacy}","received_events_url":"https://api.github.com/users/yaakov-h/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nunit/nunit/labels/is:question","name":"is:question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-29T03:35:32Z","updated_at":"2016-02-29T05:05:32Z","closed_at":"2016-02-29T05:05:32Z","body":"I'm trying to add an attribute to my unit tests to say \"this test must be run as administrator\", and in test helper code that requires administrative privileges (e.g. start a server), throw an error if the developer has not applied this attribute to their test.\r\n\r\nI have a custom attributes that implements `IApplyToTest` to set a property in the test's `IPropertyBag`, and then I have the test helper code reading this property and throwing an exception if it is not set.\r\n\r\nIf I apply this property to the test method, then I can read it within the test from `TestContext.CurrentContext.Test.Properties`.\r\n\r\nIf I apply this property to the test fixture, then it does not appear in `TestContext.CurrentContext.Test.Properties`.\r\n\r\nI can work around this by adding `IApplyToContext`and then recursively adding the property  to `context.CurrentTest`'s `Tests`, however:\r\n\r\nAre properties supposed to be inherited?\r\n\r\nIf not, is there a better way to achieve my goal with NUnit?"}}