public void ReturnHello() { using (var context = new JavascriptContext()) { const string script = @"var str = 'hello';"; context.Run(script); var result = context.GetParameter("str"); result.Should().Be("hello"); } }