public void ShouldReturnNullForEngineWhichisNotReplEngine()
            {
                var replEngine = new Mock <IScriptEngine>();

                _repl.SetupGet(x => x.ScriptEngine).Returns(replEngine.Object);

                var cmd    = new VarsCommand();
                var result = cmd.Execute(_repl.Object, null);

                result.ShouldBeNull();
            }
            public void ShouldReturnLocalVarsFromEngine()
            {
                var locals = new List <string> {
                    "int x = 0"
                };
                var replEngine = new Mock <IReplEngine>();

                replEngine.Setup(x => x.GetLocalVariables(It.IsAny <ScriptPackSession>())).Returns(locals);
                _repl.SetupGet(x => x.ScriptEngine).Returns(replEngine.Object);

                var cmd    = new VarsCommand();
                var result = cmd.Execute(_repl.Object, null);

                result.ShouldBeSameAs(locals);
            }