#291 Added ScriptResult.cs and tests