Exemplo n.º 1
0
        public void Setup ()
        {
            context = new FakeCakeContext ();

            context.CakeContext.CleanDirectories ("./TestProjects/**/bin");
            context.CakeContext.CleanDirectories ("./TestProjects/**/obj");
        }
Exemplo n.º 2
0
        public void Setup ()
        {
            context = new FakeCakeContext ();

            var dp = new DirectoryPath ("./testdata");
            var d = context.CakeContext.FileSystem.GetDirectory (dp);

            if (d.Exists)
                d.Delete (true);

            d.Create ();
        }
        public void Setup ()
        {
            context = new FakeCakeContext ();   

            context.CakeContext.DeleteFiles ("./TestProjects/ComponentPackage/*.xam");

            if (!context.CakeContext.FileSystem.Exist (new FilePath ("./TestProjects/tools/xamarin-component.exe"))) {
                context.CakeContext.CreateDirectory ("./TestProjects/tools/");
                context.CakeContext.DownloadFile ("https://components.xamarin.com/submit/xpkg", "./TestProjects/tools/xpkg.zip");
                context.CakeContext.Unzip ("./TestProjects/tools/xpkg.zip", "./TestProjects/tools/");
            }
        }
Exemplo n.º 4
0
 public void Setup ()
 {
     context = new FakeCakeContext ();
 }