{"action":"closed","issue":{"url":"https://api.github.com/repos/nunit/nunit/issues/360","labels_url":"https://api.github.com/repos/nunit/nunit/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/nunit/nunit/issues/360/comments","events_url":"https://api.github.com/repos/nunit/nunit/issues/360/events","html_url":"https://github.com/nunit/nunit/issues/360","id":48610865,"number":360,"title":"Better exception message when using non-BCL class in property","user":{"login":"jahav","id":7634052,"avatar_url":"https://avatars.githubusercontent.com/u/7634052?v=3","gravatar_id":"","url":"https://api.github.com/users/jahav","html_url":"https://github.com/jahav","followers_url":"https://api.github.com/users/jahav/followers","following_url":"https://api.github.com/users/jahav/following{/other_user}","gists_url":"https://api.github.com/users/jahav/gists{/gist_id}","starred_url":"https://api.github.com/users/jahav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jahav/subscriptions","organizations_url":"https://api.github.com/users/jahav/orgs","repos_url":"https://api.github.com/users/jahav/repos","events_url":"https://api.github.com/users/jahav/events{/privacy}","received_events_url":"https://api.github.com/users/jahav/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nunit/nunit/labels/is:bug","name":"is:bug","color":"fc2929"},{"url":"https://api.github.com/repos/nunit/nunit/labels/pri:low","name":"pri:low","color":"d4c5f9"},{"url":"https://api.github.com/repos/nunit/nunit/labels/v2","name":"v2","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"constructor-igor","id":1849690,"avatar_url":"https://avatars.githubusercontent.com/u/1849690?v=3","gravatar_id":"","url":"https://api.github.com/users/constructor-igor","html_url":"https://github.com/constructor-igor","followers_url":"https://api.github.com/users/constructor-igor/followers","following_url":"https://api.github.com/users/constructor-igor/following{/other_user}","gists_url":"https://api.github.com/users/constructor-igor/gists{/gist_id}","starred_url":"https://api.github.com/users/constructor-igor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/constructor-igor/subscriptions","organizations_url":"https://api.github.com/users/constructor-igor/orgs","repos_url":"https://api.github.com/users/constructor-igor/repos","events_url":"https://api.github.com/users/constructor-igor/events{/privacy}","received_events_url":"https://api.github.com/users/constructor-igor/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/nunit/nunit/milestones/10","html_url":"https://github.com/nunit/nunit/milestones/3.0Beta2","labels_url":"https://api.github.com/repos/nunit/nunit/milestones/10/labels","id":1018545,"number":10,"title":"3.0Beta2","description":"","creator":{"login":"CharliePoole","id":2678661,"avatar_url":"https://avatars.githubusercontent.com/u/2678661?v=3","gravatar_id":"","url":"https://api.github.com/users/CharliePoole","html_url":"https://github.com/CharliePoole","followers_url":"https://api.github.com/users/CharliePoole/followers","following_url":"https://api.github.com/users/CharliePoole/following{/other_user}","gists_url":"https://api.github.com/users/CharliePoole/gists{/gist_id}","starred_url":"https://api.github.com/users/CharliePoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharliePoole/subscriptions","organizations_url":"https://api.github.com/users/CharliePoole/orgs","repos_url":"https://api.github.com/users/CharliePoole/repos","events_url":"https://api.github.com/users/CharliePoole/events{/privacy}","received_events_url":"https://api.github.com/users/CharliePoole/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":31,"state":"open","created_at":"2015-03-12T16:18:46Z","updated_at":"2015-05-08T12:56:57Z","due_on":"2015-05-16T04:00:00Z","closed_at":null},"comments":8,"created_at":"2014-11-13T08:44:34Z","updated_at":"2015-05-08T12:56:57Z","closed_at":"2015-05-08T12:56:57Z","body":"Hi,\r\nI have been using property attribute for some metadata using non-BCL class and I got Serialization exception per documentation of PropertyAttribute constructor:\r\n\r\n> Constructor for use by derived classes that use the name of the type as the property name. Derived classes must ensure that the Type of the property value is a standard type supported by the BCL. Any custom types will cause a serialization Exception when in the client.\r\n\r\nWe have been using ReSharper to run our unit tests and the tests worked there so it took a while to track it down (we have tried NUnit GUI runner and Visual Studio Adapter). More helpful error message or perhaps even exception thrown from the constructor would be nice.\r\n\r\n```\r\n\t[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]\r\n\tpublic class LoginAsAttribute : PropertyAttribute\r\n\t{\r\n\t\tpublic LoginAsAttribute(Role role) : base(role)\r\n\t\t{\r\n\t\t}\r\n\t}\r\n```"}}