0
comment
comment
on 4/24/2012 10:18 AM
I’m sure every seasoned .NET developer has been in the situation at one stage or another, probably in testing code, where they need to access a non-public setter of a property (or maybe a private member), and it can’t be mocked. We all know the (somewhat scary) reflection trick to get at the said setter method and invoke it. I just hit this problem today trying to mock some response messages from a Microsoft Dynamics XRM 2011 OrganizationService. Thankfully F# gives us cool things like Quotations and s[...]