public void CreateCommandXElement_NullActionResultExecutor_ThrowsArgumentNullException()
        {
            var evalCommand = new EvalCommand("script");

              Action action = () => evalCommand.CreateCommandXElement(null);

              action.ShouldThrow<ArgumentNullException>();
        }
        public void CreateCommandXElement_RawScript_ReturnsCorrectXElement()
        {
            var script = "console.log('weeeeeee')";
              var evalCommand = new EvalCommand(script);
              var controllerContext = Substitute.For<ControllerContext>();
              var actionResultExecutor = Substitute.For<ActionResultExecutor>(controllerContext);

              var result = evalCommand.CreateCommandXElement(actionResultExecutor);

              result.Name.Should().Be((XName) "eval");
              result.Value.Should().Be(script);
        }