[MonoDevelop] Unit test

Jacob Ilsø Christensen jacobilsoe at gmail.com
Tue Mar 21 11:48:12 EST 2006


Hi.

The attached patch adds a unit test for namespace resolving to the
CSharpBinding assembly. It does not do much yet, but should be easy to
extend.

A few comments:

* To run the tests type: make check (I had to add some templates to
the CSharpBinding to ensure make check did not fail).
* Since Assembly.GetEntryAssembly() is null when an assembly is tested
through NUnit, I had to check for this and use
AppDomain.CurrentDomain.BaseDirectory in those situations.
* The test assembly will have to be output in build/bin for the
MonoDevelop runtime to work. Any suggestions for doing this another
way are most welcome!

Well, apart from this, I guess it is more or less self explanatory.
Any comments? Is this ok to commit with appropriate ChangeLogs?

/Jacob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unit-test.patch
Type: text/x-patch
Size: 11675 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20060321/77e37c13/unit-test.bin


More information about the Monodevelop-list mailing list