Binary i/o API, used for all index data.
Base class for per-Directory tests.
Calls check index on dispose.
Objects that represent fail-able conditions. Objects of a derived
class are created and registered with the mock directory. After
register, each object will be invoked once for each first write
of a file, giving the object a chance to throw an
Use this when throwing fake
This is a Directory Wrapper that adds methods intended to be used only by unit tests. It also adds a number of features useful for testing:
- Instances created by NewDirectory() are tracked to ensure they are disposed by the test.
- When a MockDirectoryWrapper is disposed, it will throw an exception if it has any open files against it (with a stacktrace indicating where they were opened from).
When a MockDirectoryWrapper is disposed, it runs
to test if the index was corrupted.
- MockDirectoryWrapper simulates some "features" of Windows, such as refusing to write/delete to open files.
Used by MockDirectoryWrapper to create an input stream that keeps track of when it's been disposed.
Used by MockDirectoryWrapper to create an output stream that
will throw an
Used by MockDirectoryWrapper to wrap another factory and track open locks.
This class provides access to namespace-level features defined in the Store namespace. It is used for testing only.
Enum for controlling hard disk throttling. Set via Throttling
WARNING: can make tests very slow.