Example #1
0
        public void Setup ()
        {
            context = new FakeCakeContext ();

            context.CakeContext.CleanDirectories ("./TestProjects/**/bin");
            context.CakeContext.CleanDirectories ("./TestProjects/**/obj");
        }
        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/");
            }
        }
Example #4
0
 public void Setup ()
 {
     context = new FakeCakeContext ();
 }