{"action":"created","issue":{"url":"https://api.github.com/repos/dennisdoomen/FluentAssertions/issues/331","repository_url":"https://api.github.com/repos/dennisdoomen/FluentAssertions","labels_url":"https://api.github.com/repos/dennisdoomen/FluentAssertions/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/dennisdoomen/FluentAssertions/issues/331/comments","events_url":"https://api.github.com/repos/dennisdoomen/FluentAssertions/issues/331/events","html_url":"https://github.com/dennisdoomen/FluentAssertions/pull/331","id":123084497,"number":331,"title":"Added properties for the access modifier of getter and setter on SelectedMemberInfo","user":{"login":"tomachristian","id":176021,"avatar_url":"https://avatars.githubusercontent.com/u/176021?v=3","gravatar_id":"","url":"https://api.github.com/users/tomachristian","html_url":"https://github.com/tomachristian","followers_url":"https://api.github.com/users/tomachristian/followers","following_url":"https://api.github.com/users/tomachristian/following{/other_user}","gists_url":"https://api.github.com/users/tomachristian/gists{/gist_id}","starred_url":"https://api.github.com/users/tomachristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomachristian/subscriptions","organizations_url":"https://api.github.com/users/tomachristian/orgs","repos_url":"https://api.github.com/users/tomachristian/repos","events_url":"https://api.github.com/users/tomachristian/events{/privacy}","received_events_url":"https://api.github.com/users/tomachristian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-19T13:04:35Z","updated_at":"2016-02-18T20:58:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dennisdoomen/FluentAssertions/pulls/331","html_url":"https://github.com/dennisdoomen/FluentAssertions/pull/331","diff_url":"https://github.com/dennisdoomen/FluentAssertions/pull/331.diff","patch_url":"https://github.com/dennisdoomen/FluentAssertions/pull/331.patch"},"body":"I added properties to get the access modifiers of the getter and setter on `SelectedMemberInfo`.\r\nFor field members it uses the same access modifier for both the getter and setter.\r\n\r\n```csharp\r\nCSharpAccessModifier GetAccessModifier { get; }\r\n// and\r\nCSharpAccessModifier SetAccessModifier { get; }\r\n```\r\n\r\nUsage sample\r\n\r\n```csharp\r\nsubject.ShouldBeEquivalentTo(expected, config =>\r\n                config.Excluding(ctx => ctx.SelectedMemberInfo.GetAccessModifier == CSharpAccessModifier.Internal ||\r\n                                        ctx.SelectedMemberInfo.SetAccessModifier == CSharpAccessModifier.ProtectedInternal)\r\n```"},"comment":{"url":"https://api.github.com/repos/dennisdoomen/FluentAssertions/issues/comments/185916959","html_url":"https://github.com/dennisdoomen/FluentAssertions/pull/331#issuecomment-185916959","issue_url":"https://api.github.com/repos/dennisdoomen/FluentAssertions/issues/331","id":185916959,"user":{"login":"tomachristian","id":176021,"avatar_url":"https://avatars.githubusercontent.com/u/176021?v=3","gravatar_id":"","url":"https://api.github.com/users/tomachristian","html_url":"https://github.com/tomachristian","followers_url":"https://api.github.com/users/tomachristian/followers","following_url":"https://api.github.com/users/tomachristian/following{/other_user}","gists_url":"https://api.github.com/users/tomachristian/gists{/gist_id}","starred_url":"https://api.github.com/users/tomachristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomachristian/subscriptions","organizations_url":"https://api.github.com/users/tomachristian/orgs","repos_url":"https://api.github.com/users/tomachristian/repos","events_url":"https://api.github.com/users/tomachristian/events{/privacy}","received_events_url":"https://api.github.com/users/tomachristian/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T20:58:32Z","updated_at":"2016-02-18T20:58:32Z","body":"@dennisdoomen Hey, sorry for the late response, but not much time on my hands right now.\r\n\r\nI rebased the branch and amended the last commit to match what you requested. Am I on the right track ?\r\n\r\nIf I am, I will proceed in adding summary comments, and more specs for the negated versions of the methods), although I don't feel comfortable having that code in each implementation of `ISubjectInfo`. I would make extension methods out of those `WhichSetterHasModifier` and `WhichGetterHasModifier` methods.\r\n\r\nWhat do you think ?"}}