Exemplo n.º 1
0
        public void MVExecute()
        {
            string attribFile = Path.Combine(TaskUtility.TestDirectory, @"moveme.txt");
            File.WriteAllText(attribFile, "This is a test file");

            MV task = new MV();
            task.BuildEngine = new MockBuild();
            task.SourceFiles = TaskUtility.StringArrayToItemArray(attribFile);
            task.DestinationFolder = new TaskItem(Path.Combine(TaskUtility.TestDirectory, ".."));
            task.Execute();

            File.WriteAllText(attribFile, "This is a test file");

            task = new MV();
            task.BuildEngine = new MockBuild();
            task.SourceFiles = TaskUtility.StringArrayToItemArray(attribFile);
            task.DestinationFiles = TaskUtility.StringArrayToItemArray("newme.txt");
            task.Execute();
        }
Exemplo n.º 2
0
        public void MVExecute()
        {
            string attribFile = Path.Combine(TaskUtility.TestDirectory, @"moveme.txt");

            File.WriteAllText(attribFile, "This is a test file");

            MV task = new MV();

            task.BuildEngine       = new MockBuild();
            task.SourceFiles       = TaskUtility.StringArrayToItemArray(attribFile);
            task.DestinationFolder = new TaskItem(Path.Combine(TaskUtility.TestDirectory, ".."));
            task.Execute();

            File.WriteAllText(attribFile, "This is a test file");

            task                  = new MV();
            task.BuildEngine      = new MockBuild();
            task.SourceFiles      = TaskUtility.StringArrayToItemArray(attribFile);
            task.DestinationFiles = TaskUtility.StringArrayToItemArray("newme.txt");
            task.Execute();
        }