Beispiel #1
0
        /// <summary>
        /// Run command when derived class override this method.
        /// </summary>
        /// <returns>
        /// Return value of the whole application.
        /// </returns>
        public override int Run()
        {
            string output = CmdExecutor.ExecuteCmd("dotnet --info");

            _console.WriteLine(output);
            return(0);
        }
Beispiel #2
0
        public void ExecuteCommandTest()
        {
            string output = CmdExecutor.ExecuteCmd("dotnet --info");

            output.ShouldContain("5.0");
        }