Skip to content

TestUtil#

Provides utility methods useful for testing. More...

import Script.Test

Methods#

Name
compareDirectories(string current, string expected)
compareFiles(string file, string expected, bool eolLF = true)
createTestProjectFrom(string path)
removeTestProject(string path)

Detailed Description#

This class is mainly used by the TestCase object, to extract some information on the script.

It should not be used in normal scripts.

Method Documentation#

compareDirectories(string current, string expected)#

Compares the two directories recursively, and return true if they are the same.

compareFiles(string file, string expected, bool eolLF = true)#

Compares the content of the two files, and return true if they are the same. If eolLF true, compareFiles will change the EOL of files to LF for comparison.

createTestProjectFrom(string path)#

Creates a new recursive copy of the directory at path with the name path_test_data. Returns the newly created directory path.

removeTestProject(string path)#

Removes the path from the disk.