public void SetUp()
        {
            fakeLoggerLastMessage = "";
            var mock = new Mock <ILogger>();

            mock.Setup(m => m.Log(It.IsAny <string>())).Callback <string>(x => { fakeLoggerLastMessage += x; });

            executor = new CommandEcho(mock.Object);
        }
        public void EchoRunTest()
        {
            List <string> args = new List <string> {
                "123", "456", "789"
            };
            CommandResult result        = new CommandEcho().Run(args);
            string        correctOutput = "123 456 789 \r\n";

            Assert.AreEqual(stringWriter.ToString(), correctOutput);
            Assert.AreEqual(result.Errors, new List <string> {
            });
            Assert.AreEqual(result.Results, new List <string> {
            });

            Assert.Pass();
        }