All implementations of IDokanOperations will need to change their final
parameters to accept IDokanFileInfo instead of bare DokanFileInfo.
New class: MockDokanFileInfo This is accepted by implementations of
IDokanOperations and IDokanOperationsUnsafe as their final
parameters. You can set all of the values of the public
interfaces of IDokanFileInfo (which itself was extracted from the
publicly accessible fields of DokanFileInfo), and specify the
mock behavior of both .TryResetTimeout() and .GetRequestor().
To use this, your mock code needs to behave as though it is
Dokan, calling into your IDokanOperations implementation with
various parameters and testing the expected behaviors and return
values.
THIS IS A BREAKING CHANGE.
All implementations of
IDokanOperations
will need to change their final parameters to acceptIDokanFileInfo
instead of bareDokanFileInfo
.New class:
MockDokanFileInfo
This is accepted by implementations ofIDokanOperations
andIDokanOperationsUnsafe
as their final parameters. You can set all of the values of the public interfaces ofIDokanFileInfo
(which itself was extracted from the publicly accessible fields ofDokanFileInfo
), and specify the mock behavior of both.TryResetTimeout()
and.GetRequestor()
.To use this, your mock code needs to behave as though it is Dokan, calling into your
IDokanOperations
implementation with various parameters and testing the expected behaviors and return values.