In this case, the assembly is tested under the same conditions as at run-time and the design of the test is more elegant.
The script engine combined with the scripts becomes a small development system.