This project is read-only.


Not Implemented Exceptions


Do you guys have an estimate for when you'll be implementing functionality such as SetAccessControl? I'm trying to use this but it's not been implemented and is just throwing exceptions which is a real shame because I need to be able to set and get access to files and directories for mocking :-(
Closed May 15, 2012 at 1:57 PM by tathamoddie
Not a work item.


tathamoddie wrote May 15, 2012 at 1:57 PM

As needed.

If you send a pull request with the methods you want implemented, I'll usually have it merged and published to NuGet in less than 5 minutes. (It's all automated, assuming that your tests pass.)

denzilla wrote May 15, 2012 at 4:39 PM

I don't suppose you could provide some steer to get me started could you? I've taken a look through the code and am looking at SetAccessControl which is being consumed by a unit test I'm writing for CreateDirectory in MockDirectory.cs.

I'm passing a DirectorySecurity object and I'm setting this against the mockDirectoryInfo object, but I'm not entirely sure how to implement the MockDirectoryInfo.cs method for SetAccessControl().

I want to call something like the following in there, but that is looking for a physical directory, and I'm already in the context of a mock DirectoryInfo but I cannot find any way of passing the mock directory to this call:

Directory.SetAccessControl(directoryPath, directorySecurity);

If you can get me started here I can get a lot more implemented :)

denzilla wrote May 28, 2012 at 3:35 PM

No comments on how this should be implemented?