Replies: 3 comments 2 replies
-
I would recommend creating a
Regarding |
Beta Was this translation helpful? Give feedback.
-
Thanks. I can see there is a class |
Beta Was this translation helpful? Give feedback.
-
By the way, I think a cast is needed:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a simple filesystem made by implementing the interface IDokanOperations2. I would like to write unit tests for the individual methods. For example to call the
CreateFile
method with a certain filename, access modes and so on.To do that I need to create an instance of
ReadOnlyNativeMemory<char>
to hold the filename. Is there a recommended way to construct tihs given a string or an array of bytes?I believe I will also need to construct a
DokanFileInfo
struct, but the documentation states that it cannot be instantiated in C#. Is there a way to get an instance via native code or to mock it somehow?Beta Was this translation helpful? Give feedback.
All reactions