Can't add MonoTouch assembly to NUnit project with Monodevelop?

Now, I can run the at least one of the tests.

Up vote 1 down vote favorite share g+ share fb share tw.

I'm using MonoTouch (monoDevelop 2.6) to develop an iPhone app. I've created an iPhone windows based project, a monoTouch library project and a NUnit project. I'll like to add a reference from my NUnit project, to my library project so that I can write some unit tests against my UI agnostic code.

Sadly, the library and UI projects use the runTime MonoForiPhone and can't be added as references to the NUnit project (which uses the Mono/3.5 target framework).. The projects are greyed out under Edit References with a message "Incompatible framework..." Likewise if I create a regular .net library for my business logic, the UI cannot reference the project. How can I create units against my iPhone application? Mono nunit monotouch monodevelop link|improve this question asked Jun 23 '11 at 11:21ForeverDebugging806417 93% accept rate.

Duplication question: stackoverflow.com/questions/3868063/… – Jonathan. Peppers Jun 23 '11 at 16:19 I read the above question and the steps suggested are no longer possible. – ForeverDebugging Jun 23 '11 at 21:52 1 There is your answer.

There is no good way to run NUnit tests on MonoTouch. – Jonathan. Peppers Jun 23 '11 at 22:44.

Add a monotouch library project which contains non UI code. Add a nUnit project. Add files to the nUnit project (by creating links).

Now, I can run the at least one of the tests.

What I would suggest is to create two projects, one to target MonoTouch and one which targets . NET 3. 5/4/whatever for NUnit testing purposes.

In case you missed it, there is now a NUnitLite runner available for MonoTouch which is designed to work for UI agnostic code and executed on devices (or simulator). See: . NET Unit test runner for iOS.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions