Sandbox

Responsible for creating a temporary directory to serve as a sandbox where files can be created, written to or deleted.

Members

Functions

shouldEqualLines
void shouldEqualLines(string fileName, string[] lines, string file, size_t line)

read a file in the test sandbox and verify its contents

shouldExist
void shouldExist(string fileName, string file, size_t line)

Assert that a file exists in the sandbox

shouldNotExist
void shouldNotExist(string fileName, string file, size_t line)

Assert that a file does not exist in the sandbox

writeFile
void writeFile(string fileName, string output)

Write a file to the sandbox

writeFile
void writeFile(string fileName, string[] lines)

Write a file to the sanbox

Manifest constants

defaultSandboxPath
enum defaultSandboxPath;
Undocumented in source.

Static functions

opCall
Sandbox opCall()

Instantiate a Sandbox object

resetPath
void resetPath()
Undocumented in source. Be warned that the author may not have intended to support it.
setPath
void setPath(string path)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

sandboxPath
string sandboxPath;
Undocumented in source.

Variables

testPath
string testPath;
Undocumented in source.

Meta