コード例 #1
0
        public void ShouldThrowEventWithOutputFromProcess()
        {
            processCaller = new ProcessCaller(logger);

            processCaller.ExecuteSync("cmd.exe", "/c dir", string.Empty);

            logger.ReceivedWithAnyArgs()
                  .Info(null);
        }
コード例 #2
0
        public void ShouldThrowEventWithOutputErrorFromProcess()
        {
            processCaller = new ProcessCaller(logger);

            processCaller.ExecuteSync("cmd.exe", "/c no_commande_xist", string.Empty);

            logger.ReceivedWithAnyArgs()
                  .Error(null);
        }