public void ExecuteShouldShowDecompressionView()
 {
     var viewMock = new Mock<IDecompressionView>();
     ICommand target = new DecompressCommand(viewMock.Object, "inputFileName", "outputFileName");
     target.Execute();
     viewMock.Verify(v => v.Decompress("inputFileName", "outputFileName"));
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            var srcPath = AppSettingsHelper.GetValue("srcPath");
            var desPath = AppSettingsHelper.GetValue("desPath");

            LogHelper.LogPath = Directory.GetCurrentDirectory();
            ICommand cmd = new DecompressCommand(srcPath, desPath);

            cmd.Execute();
        }