{"action":"created","issue":{"url":"https://api.github.com/repos/avatar29A/MusicBrainz/issues/8","labels_url":"https://api.github.com/repos/avatar29A/MusicBrainz/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/avatar29A/MusicBrainz/issues/8/comments","events_url":"https://api.github.com/repos/avatar29A/MusicBrainz/issues/8/events","html_url":"https://github.com/avatar29A/MusicBrainz/issues/8","id":58742336,"number":8,"title":"Deserialization issues","user":{"login":"wo80","id":1840402,"avatar_url":"https://avatars.githubusercontent.com/u/1840402?v=3","gravatar_id":"","url":"https://api.github.com/users/wo80","html_url":"https://github.com/wo80","followers_url":"https://api.github.com/users/wo80/followers","following_url":"https://api.github.com/users/wo80/following{/other_user}","gists_url":"https://api.github.com/users/wo80/gists{/gist_id}","starred_url":"https://api.github.com/users/wo80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wo80/subscriptions","organizations_url":"https://api.github.com/users/wo80/orgs","repos_url":"https://api.github.com/users/wo80/repos","events_url":"https://api.github.com/users/wo80/events{/privacy}","received_events_url":"https://api.github.com/users/wo80/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T14:05:46Z","updated_at":"2015-02-24T14:17:27Z","closed_at":"2015-02-24T14:17:27Z","body":"I created a branch to add more unit tests and I'm having some deserialization issues (well, the issue is that I have no idea what's going wrong).\r\n\r\nHave a look for example at the  [ReleaseTests.cs](https://github.com/wo80/MusicBrainz/blob/add-tests/Hqub.MusicBrainze.API/Hqub.MusicBrainze.API.Test/ReleaseTests.cs#L47) file. I'm testing\r\n```c#\r\nAssert.AreEqual(\"Official\", release.Status);\r\nAssert.AreEqual(\"normal\", release.Quality);\r\n```\r\nThe corresponding XML is\r\n```xml\r\n<release id=\"12195c41-6136-4dfd-acf1-9923dadc73e2\">\r\n    <!-- ... -->\r\n    <status>Official</status>\r\n    <quality>normal</quality>\r\n    <!-- ... -->\r\n</release>\r\n```\r\nAnd the serialization in [Release.cs](https://github.com/wo80/MusicBrainz/blob/add-tests/Hqub.MusicBrainze.API/Hqub.MusicBrainze.API/Entities/Release.cs#L24-28) looks like\r\n```c#\r\n[XmlElement(\"status\")]\r\npublic string Status { get; set; }\r\n\r\n[XmlElement(\"quality\")]\r\npublic string Quality { get; set; }\r\n```\r\nNow, the test of ```release.Status``` passes, but ```release.Quality``` fails because it's ```null``` (obviously it doesn't get deserialized).\r\n\r\nSo ... WTF???\r\n\r\nAnyone got an idea?"},"comment":{"url":"https://api.github.com/repos/avatar29A/MusicBrainz/issues/comments/75763469","html_url":"https://github.com/avatar29A/MusicBrainz/issues/8#issuecomment-75763469","issue_url":"https://api.github.com/repos/avatar29A/MusicBrainz/issues/8","id":75763469,"user":{"login":"wo80","id":1840402,"avatar_url":"https://avatars.githubusercontent.com/u/1840402?v=3","gravatar_id":"","url":"https://api.github.com/users/wo80","html_url":"https://github.com/wo80","followers_url":"https://api.github.com/users/wo80/followers","following_url":"https://api.github.com/users/wo80/following{/other_user}","gists_url":"https://api.github.com/users/wo80/gists{/gist_id}","starred_url":"https://api.github.com/users/wo80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wo80/subscriptions","organizations_url":"https://api.github.com/users/wo80/orgs","repos_url":"https://api.github.com/users/wo80/repos","events_url":"https://api.github.com/users/wo80/events{/privacy}","received_events_url":"https://api.github.com/users/wo80/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T14:17:27Z","updated_at":"2015-02-24T14:17:27Z","body":"False alarm. Testing against the wrong data ..."}}