Beispiel #1
0
        public void ShouldReturnHelloError()
        {
            RunNode.Result result = RunNode.Run("HelloError.js", false);

            result.AssetTimeout(false);
            result.AssetOutput();
            result.AssetErrors(
                "Hello Error!"
                );
        }
Beispiel #2
0
        public void ShouldReturnHelloWorld2()
        {
            RunNode.Result result = RunNode.Run("HelloWorld2.js", false);

            result.AssetTimeout(false);
            result.AssetOutput(
                "Hello World!",
                "Hello again World!"
                );
            result.AssetErrors();
        }
Beispiel #3
0
        public void ShouldStopAfterTimeout()
        {
            RunNode.Result result = RunNode.Run("Timeout.js", false);

            result.AssetTimeout(true);

            result.AssetTimeout(true);
            result.AssetOutput(
                "Should be running"
                );
            result.AssetErrors();
        }