7 Commits
Author SHA1 Message Date
Alexander Köplinger c11189fa1a [Microsoft.Build.Engine] Switch tests to use embedded test resources 2018-09-27 22:47:53 +02:00
Martin Baulig a3c14d7686 [xbuild]: Support <PropertyGroup/ItemGroup> inside <Target>. 2013-04-05 13:07:02 +02:00
Ankit Jain f5d2048d70 * ProjectTest.cs (TestAssignment1):
* UsingTaskTest.cs (TestTaskName):
(TestAssemblyNameOrAssemblyFile1):
(TestAssemblyNameOrAssemblyFile2): Don't compare exception messages.

svn path=/trunk/mcs/; revision=134151
2009-05-14 18:07:02 +00:00
Ankit Jain bd33dcb033 Lazily load UsingTask tasks.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

	Lazily load UsingTask tasks.
	* UsingTask.cs (Evaluate): Register 'this' with task database,
	but don't load it yet. Register only if condition evaluates to true.
	Move the load logic to ..
	(Load): .. here. Register with the specified task database.
	* TaskDatabase.cs (RegisterUsingTask): Store the UsingTask instance
	in a table keyed by task name, but don't load it yet.
	(GetTypeFromClassName): Try to load UsingTask if task is not already
	loaded. Move loading logic to ..
	(GetTypeFromClassNameInternal): .. here.
	(CopyTasks): Copy the usingTasks table also.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* UsingTaskTest.cs (TestLazyLoad{1,2,3}): New.
	(TestAssemblyNameOrAssemblyFileConditionFalse): New.
	(TestDuplicate1): New.
	* TargetTest (CheckLoggedMessageHead): Moved to TestMessageLogger,
	use that.

In class/Microsoft.Build.Engine/Test/resources:

	* TestTasks.cs (Another.SameTask): New.
	(Other.SameTask): New.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* TestMessageLogger.cs (CheckLoggedMessageHead): Move here from
	* TaskBatchingTest.cs: .. here. Track api change.

svn path=/trunk/mcs/; revision=127830
2009-02-24 00:12:25 +00:00
Marek Sieradzki b127d76264 2006-12-04 Marek Sieradzki <[email protected]>
* BuildPropertyGroupTest.cs, UsingTaskCollectionTest.cs,
        BuildPropertyGroupCollectionTest.cs, BuildPropertyGroupTest.cs,
        EngineTest.cs, UsingTaskTest.cs, Consts.cs: Added platform dependent
        BinPath.
        * ProjectTest.cs: New tests.
        * BuildTaskTest.cs, TargetTest.cs, ImportCollectionTest.cs,
        BuildItemGroupTest.cs, TargetCollectionTest.cs,
        BuildItemGroupCollectionTest.cs, ImportTest.cs: Added.


svn path=/trunk/mcs/; revision=68961
2006-12-04 16:19:17 +00:00
Marek Sieradzki b34b42b952 2006-06-22 Marek Sieradzki <[email protected]>
* UsingTaskCollectionTest.cs, UsingTaskTest.cs: Updated names.
        * ProjectTest.cs: Moved most of the old tests to various/.
        * Consts.cs: Added.


svn path=/trunk/mcs/; revision=61956
2006-06-22 20:16:59 +00:00
Marek Sieradzki 9aae01b78b 2006-06-14 Marek Sieradzki <[email protected]>
* BuildPropertyGroupTest.cs: Added some tests.
        * UsingTaskCollectionTest.cs: Added very simple test.
        * UsingTaskTest.cs: Added test that's loading SimpleTask.dll task from
        Test/resources/. Test/resources/SimpleTask.cs should be compiled
        before running tests. I need to find out how to add it to Makefile.


svn path=/trunk/mcs/; revision=61714
2006-06-14 21:44:49 +00:00