I'm programming with the Windows Azure SDK and want to Mock the LocalResource object in my unit tests. Problem is that LocalResource is an abstract class that defines property set as internals. The Mock object/proxy does not implement these property set and an exception is thrown at runtime. Looks like a loophole in the language definition. How to write my unit tests?
var resource = Mock.Create<LocalResource>();
Mock.Arrange(() => RoleEnvironment.GetLocalResource(
"workingfolder"
)).Returns(resource);