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(in string fileName, in string[] lines, string file = __FILE__, size_t line = __LINE__)

read a file in the test sandbox and verify its contents

shouldExist
void shouldExist(string fileName, in string file = __FILE__, in size_t line = __LINE__)

Assert that a file exists in the sandbox

shouldNotExist
void shouldNotExist(string fileName, in string file = __FILE__, in size_t line = __LINE__)

Assert that a file does not exist in the sandbox

writeFile
void writeFile(in string fileName, in string output = "")

Write a file to the sandbox

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

Write a file to the sanbox

Static functions

opCall
Sandbox opCall()

Instantiate a Sandbox object

Meta