public void Setup()
        {
            ImageResizer resizer      = new ImageResizer();
            ImageRenamer imageRenamer = new ImageRenamer();

            _resultChecker = new AndroidResultChecker(resizer, imageRenamer);
            _service       = new DroidResizeService(resizer, imageRenamer, new ProjectUpdaterStub());


            if (Directory.Exists(OutDir))
            {
                Directory.Delete(OutDir, true);
            }
        }
Exemplo n.º 2
0
        public void Setup()
        {
            ImageResizer resizer      = new ImageResizer();
            ImageRenamer imageRenamer = new ImageRenamer();

            _androidResultChecker = new AndroidResultChecker(resizer, imageRenamer);

            if (Directory.Exists(OutDir))
            {
                Directory.Delete(OutDir, true);
            }


            if (!Directory.Exists(Path.GetDirectoryName(WorkProjectFile)))
            {
                Directory.CreateDirectory(Path.GetDirectoryName(WorkProjectFile));
            }

            File.Copy(ProjectFile, WorkProjectFile);
        }